
Etherpad lite has changed their source tree slightly. This has required a few updates to the etherpad lite puppet module. The custom pad.js needs to go in a different directory and the upstart conf file needs a couple updated paths. In addition to the fixes a couple things have been cleaned up. Now define an etherpadlite.openstack.org node in site.pp and copy SSL certs from /root/secret-files. Change-Id: I312b419aa98212b6db68232c672bc4d75f23777f
27 lines
786 B
Plaintext
27 lines
786 B
Plaintext
description "etherpad-lite"
|
|
|
|
start on started networking
|
|
stop on runlevel [!2345]
|
|
|
|
env EPHOME=<%= base_install_dir %>/etherpad-lite
|
|
env EPLOGS=<%= base_log_dir %>/<%= ep_user %>
|
|
env EPUSER=<%= ep_user %>
|
|
|
|
respawn
|
|
|
|
pre-start script
|
|
chdir $EPHOME
|
|
mkdir $EPLOGS ||true
|
|
chown $EPUSER:admin $EPLOGS ||true
|
|
chmod 0755 $EPLOGS ||true
|
|
chown -R $EPUSER:admin $EPHOME/var ||true
|
|
bin/installDeps.sh >> $EPLOGS/error.log || { stop; exit 1; }
|
|
end script
|
|
|
|
script
|
|
cd $EPHOME
|
|
exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- /usr/local/bin/node node_modules/ep_etherpad-lite/node/server.js \
|
|
>> $EPLOGS/access.log \
|
|
2>> $EPLOGS/error.log
|
|
end script
|