|
|
@ -15,10 +15,11 @@ set -eux # -x for verbose logging to juju debug-log |
|
|
|
mkdir -p /opt/apps |
|
|
|
( |
|
|
|
cd /opt/apps && |
|
|
|
git clone https://github.com/anru/rsted.git && |
|
|
|
git clone https://github.com/vaab/rsted && |
|
|
|
adduser --system --home=/home/"$RSTED_USER" --group "$RSTED_GROUP" && |
|
|
|
#chown "$RSTED_USER":"$RSTED_GROUP" /opt/apps/rsted -R && |
|
|
|
## -H is to force HOME environment variable to change to etherpad one. |
|
|
|
mkdir /var/run/rsted && chown "$RSTED_USER" /var/run/rsted && |
|
|
|
cd rsted && |
|
|
|
pip install -r pip-requirements.txt |
|
|
|
) |
|
|
|