X-Git-Url: https://plomlompom.com/repos/?p=config;a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fmigrate_app.sh;h=6e18f330e89eb5febf4c69302997a768fb13f33f;hp=cda12f564a010c764eff894b438b17f1ee8b6834;hb=f1901562e5d3859b4e9a9eb7c5f48c6db73fc8b1;hpb=48f069dd3e790b8716d1a03fcd6892cb51f10199 diff --git a/buster/setup_scripts/migrate_app.sh b/buster/setup_scripts/migrate_app.sh index cda12f5..6e18f33 100755 --- a/buster/setup_scripts/migrate_app.sh +++ b/buster/setup_scripts/migrate_app.sh @@ -6,15 +6,18 @@ if [ "$#" -lt 2 ]; then 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" -if [ "${app}" = "pleroma" ]; then +if [ "${app}" = "pleroma_otp" ]; then db_name="pleroma" 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" dirs="/var/www/peertube/storage /var/www/peertube/config"