Fix rooted path to docker-compose
In places like crontab entries we use full paths to executables because PATH is different under cron. Unfortunately, this meant we broke docker-compose commands using /usr/bin/docker-compose when we installed it under /usr/local/bin/docker-compose. In particular this impacted database backups on gitea nodes and etherpad. Update these paths so that everything is happy again. Change-Id: Ib001baab419325ef1a43ac8e3364e755a6655617
This commit is contained in:
parent
91a2024d6d
commit
2e2ee170f8
@ -49,7 +49,7 @@ browser). This is fairly easily accomplished via the `HTTP API`_, but
|
||||
you need the key which is saved in a file on the server so it's easiest
|
||||
if done when SSH'd into it locally::
|
||||
|
||||
/usr/bin/docker-compose -f /etc/etherpad-docker/docker-compose.yaml exec -T etherpad \
|
||||
/usr/local/bin/docker-compose -f /etc/etherpad-docker/docker-compose.yaml exec -T etherpad \
|
||||
bash -c "wget -qO- 'http://localhost:9001/api/1/deletePad?apikey='$(cat \
|
||||
/opt/etherpad-lite/APIKEY.txt)'&padID=XXXXXXXXXX'"
|
||||
|
||||
|
@ -129,7 +129,7 @@
|
||||
state: present
|
||||
user: root
|
||||
job: >
|
||||
/usr/bin/docker-compose -f /etc/etherpad-docker/docker-compose.yaml exec -T mariadb
|
||||
/usr/local/bin/docker-compose -f /etc/etherpad-docker/docker-compose.yaml exec -T mariadb
|
||||
bash -c '/usr/bin/mysqldump --opt --databases etherpad-lite --single-transaction -uroot -p"$MYSQL_ROOT_PASSWORD"' |
|
||||
gzip -9 > /var/backups/etherpad-mariadb/etherpad-mariadb.sql.gz
|
||||
minute: 42
|
||||
|
@ -170,7 +170,7 @@
|
||||
state: present
|
||||
user: root
|
||||
job: >
|
||||
/usr/bin/docker-compose -f /etc/gitea-docker/docker-compose.yaml exec -T mariadb
|
||||
/usr/local/bin/docker-compose -f /etc/gitea-docker/docker-compose.yaml exec -T mariadb
|
||||
bash -c '/usr/bin/mysqldump --opt --databases gitea --single-transaction -uroot -p"$MYSQL_ROOT_PASSWORD"' |
|
||||
gzip -9 > /var/backups/gitea-mariadb/gitea-mariadb.sql.gz
|
||||
minute: 42
|
||||
|
Loading…
Reference in New Issue
Block a user