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 cb307883bcebd7275395878c29c8c2085c51f052..dd1d85624368f11f15513b8f570b0223105154aa 100755
(executable)
--- a/
buster/setup_scripts/restore_app.sh
+++ b/
buster/setup_scripts/restore_app.sh
@@
-19,11
+19,11
@@
mv "/home/plom/${app}_backup.tar" /tmp/
cd /tmp
tar xf "${app}_backup.tar"
cd /tmp
tar xf "${app}_backup.tar"
-su postgres -c "pg_restore -c -
C -d ${db_name} -1
${app}_backup/${db_name}.pgdump"
+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