X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=buster%2Fsetup_scripts%2Frestore_app.sh;h=dd1d85624368f11f15513b8f570b0223105154aa;hb=0feab235fba33a538250197026f6cf555de4f7b0;hp=c4520824d32e22fc7c547ae8296f59e2a1df6fa9;hpb=20c2ad6e5354eec1b26663e556c5b177624f7033;p=config
diff --git a/buster/setup_scripts/restore_app.sh b/buster/setup_scripts/restore_app.sh
index c452082..dd1d856 100755
--- a/buster/setup_scripts/restore_app.sh
+++ b/buster/setup_scripts/restore_app.sh
@@ -23,7 +23,7 @@ su postgres -c "pg_restore -c -1 -d ${db_name} ${app}_backup/${db_name}.pgdump"
rm "${app}_backup/${db_name}.pgdump"
cd "${app}_backup"
-for path in $/find . -type f); do
+for path in $(find . -type f); do
target_path=$(echo "${path}" | cut -c2-)
source_path=$(realpath "${path}")
dir=$(dirname "${target_path}")
@@ -39,4 +39,4 @@ elif [ "${app}" = "peertube" ]; then
fi
su postgres -lc "psql -c \"ALTER USER ${app} WITH PASSWORD '${db_pw}';\""
-service "${app}" stop
+service "${app}" start