Add common module managing common services and scripts (act_runner, create/restore backups)
Fix script environment variables Add Fefan configuration Fix gateway services file provisionning through ssh
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
source /opt/gitea/env.sh
|
||||
source /opt/environment/.env
|
||||
|
||||
sudo -u postgres psql <<EOF
|
||||
DO \$\$
|
||||
@@ -16,7 +16,7 @@ END
|
||||
\$\$;
|
||||
EOF
|
||||
|
||||
LATEST_BACKUP=$(ls -1 $GITEA_BACKUPS_DIR/gitea-dump-*.zip 2>/dev/null | sort | tail -n1)
|
||||
LATEST_BACKUP=$(ls -1 $SERVICE_BACKUPS_DIR/$SERVICE_BACKUPS_PREFIX-*.$SERVICE_BACKUPS_EXTENSION 2>/dev/null | sort | tail -n1)
|
||||
|
||||
if [ -n "$LATEST_BACKUP" ] && [ -f "$LATEST_BACKUP" ]; then
|
||||
TMP_DIR=$(mktemp -d)
|
||||
|
||||
Reference in New Issue
Block a user