home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend Pleroma-from-source scripting.
[config]
/
buster
/
setup_scripts
/
migrate_app.sh
diff --git
a/buster/setup_scripts/migrate_app.sh
b/buster/setup_scripts/migrate_app.sh
index 3be68704f87c915162752ab6df3b165723245c21..6e18f330e89eb5febf4c69302997a768fb13f33f 100755
(executable)
--- a/
buster/setup_scripts/migrate_app.sh
+++ b/
buster/setup_scripts/migrate_app.sh
@@
-6,18
+6,21
@@
if [ "$#" -lt 2 ]; then
echo 'Need two arguments: old server IP, and service name.'
false
fi
echo 'Need two arguments: old server IP, and service name.'
false
fi
-if [ ! "$2" = "pleroma" ] && [ ! "$2" = "peertube" ]; then
- echo "Need legal service name (pleroma or peertube)."
+if [ ! "$2" = "pleroma
_otp" ] && [ ! "$2" = "pleroma_source
" ] && [ ! "$2" = "peertube" ]; then
+ echo "Need legal service name (pleroma
_otp or pleroma_source
or peertube)."
false
fi
server_ip="$1"
app="$2"
false
fi
server_ip="$1"
app="$2"
-if [ "${app}" = "pleroma" ]; then
+if [ "${app}" = "pleroma
_otp
" ]; then
db_name="pleroma"
db_name="pleroma"
- dirs="/var/www/peertube/storage /var/www/peertube/config"
+ dirs="/var/lib/pleroma/uploads /etc/pleroma"
+if [ "${app}" = "pleroma_source" ]; then
+ db_name="pleroma"
+ dirs="/var/lib/pleroma/uploads /opt/pleroma/config"
elif [ "${app}" = "peertube" ]; then
db_name="peertube_prod"
elif [ "${app}" = "peertube" ]; then
db_name="peertube_prod"
- dirs="/var/
lib/pleroma/uploads /etc/pleroma
"
+ dirs="/var/
www/peertube/storage /var/www/peertube/config
"
fi
config_tree_prefix="${HOME}/config/buster"
fi
config_tree_prefix="${HOME}/config/buster"