mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
cleanup after workspace refactoring (#6174)
* fix bin folder and workflows as far its possible cleanup of dockerfile changed paths of scripts add lock file fix working directory for workflows fix windows bin fix travis (is travis used anyway?) fix package refs remove pnpm-lock file in root as these conflicts with the docker volume setup optimize comments use install again refactor prod image call to run fix --workspace can only be used inside a workspace correct comment try fix pipeline try fix pipeline for upgrade-from-latest-release install all deps smaller adjustments save update dockerfile remove workspace command fix run test command start repair latest release workflow start repair latest release workflow start repair latest release workflow further repairs * remove test plugin from docker compose
This commit is contained in:
parent
4f53142d7f
commit
04063d664b
75 changed files with 158 additions and 192 deletions
9
bin/deb-src/DEBIAN/control
Normal file
9
bin/deb-src/DEBIAN/control
Normal file
|
@ -0,0 +1,9 @@
|
|||
Package: etherpad
|
||||
Version: 1.3
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: i386
|
||||
Installed-Size: SIZE
|
||||
Depends:
|
||||
Maintainer: John McLear <john@mclear.co.uk>
|
||||
Description: Etherpad is a collaborative editor.
|
7
bin/deb-src/DEBIAN/postinst
Executable file
7
bin/deb-src/DEBIAN/postinst
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Start the services!
|
||||
|
||||
service etherpad start
|
||||
echo "Give Etherpad about 3 minutes to install dependencies then visit http://localhost:9001 in your web browser"
|
||||
echo "To stop etherpad type 'service etherpad stop', To restart type 'service etherpad restart'".
|
||||
rm -f /tmp/etherpad.log /tmp/etherpad.err
|
26
bin/deb-src/DEBIAN/preinst
Executable file
26
bin/deb-src/DEBIAN/preinst
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Installs node if it isn't already installed
|
||||
#
|
||||
# Don't steamroll over a previously installed node version
|
||||
# TODO provide a local version of node?
|
||||
|
||||
VER="0.10.4"
|
||||
ARCH="x86"
|
||||
if [ `arch | grep 64` ]
|
||||
then
|
||||
ARCH="x64"
|
||||
fi
|
||||
|
||||
# TODO test version
|
||||
if [ ! -f /usr/local/bin/node ]
|
||||
then
|
||||
pushd /tmp
|
||||
wget -c "http://nodejs.org/dist/v${VER}/node-v${VER}-linux-${ARCH}.tar.gz"
|
||||
rm -rf /tmp/node-v${VER}-linux-${ARCH}
|
||||
tar xf node-v${VER}-linux-${ARCH}.tar.gz -C /tmp/
|
||||
cp -a /tmp/node-v${VER}-linux-${ARCH}/* /usr/local/
|
||||
fi
|
||||
|
||||
# Create Etherpad user
|
||||
adduser --system etherpad
|
4
bin/deb-src/DEBIAN/prerm
Executable file
4
bin/deb-src/DEBIAN/prerm
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Stop the appserver:
|
||||
service etherpad stop || true
|
28
bin/deb-src/sysroot/etc/init/etherpad.conf
Normal file
28
bin/deb-src/sysroot/etc/init/etherpad.conf
Normal file
|
@ -0,0 +1,28 @@
|
|||
description "etherpad"
|
||||
|
||||
start on started networking
|
||||
stop on runlevel [!2345]
|
||||
|
||||
env EPHOME=/opt/etherpad
|
||||
env EPLOGS=/var/log/etherpad
|
||||
env EPUSER=etherpad
|
||||
|
||||
respawn
|
||||
|
||||
pre-start script
|
||||
cd $EPHOME
|
||||
mkdir $EPLOGS ||true
|
||||
chown $EPUSER $EPLOGS ||true
|
||||
chmod 0755 $EPLOGS ||true
|
||||
chown -R $EPUSER $EPHOME/var ||true
|
||||
$EPHOME/bin/installDeps.sh >> $EPLOGS/error.log || { stop; exit 1; }
|
||||
end script
|
||||
|
||||
script
|
||||
cd $EPHOME/
|
||||
exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- node --import tsx src/node/server.ts \
|
||||
>> $EPLOGS/access.log \
|
||||
2>> $EPLOGS/error.log
|
||||
echo "Etherpad is running on http://localhost:9001 - To change settings edit /opt/etherpad/settings.json"
|
||||
|
||||
end script
|
Loading…
Add table
Add a link
Reference in a new issue