home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt at script to build Pleroma from source.
[config]
/
buster
/
setup_scripts
/
restore_app.sh
diff --git
a/buster/setup_scripts/restore_app.sh
b/buster/setup_scripts/restore_app.sh
index c4520824d32e22fc7c547ae8296f59e2a1df6fa9..dd1d85624368f11f15513b8f570b0223105154aa 100755
(executable)
--- 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"
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}")
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}';\""
fi
su postgres -lc "psql -c \"ALTER USER ${app} WITH PASSWORD '${db_pw}';\""
-service "${app}" st
op
+service "${app}" st
art