Compare commits

...
2 Commits
Author SHA1 Message Date
EV21 ee5d32045c minor: add backend command to uninstaller 2023-06-09 12:53:11 +02:00
EV21 6ff8b2edef feat(Nextcloud): add file tree output 2023-06-09 12:37:20 +02:00
+24 -1
View File
@@ -91,6 +91,7 @@ function uninstall_nextcloud
fi fi
if test -f ~/etc/services.d/notify_push.ini if test -f ~/etc/services.d/notify_push.ini
then then
uberspace web backend del /push
supervisorctl stop notify_push supervisorctl stop notify_push
rm ~/etc/services.d/notify_push.ini rm ~/etc/services.d/notify_push.ini
supervisorctl reread supervisorctl reread
@@ -321,6 +322,27 @@ function yes_no_question
done done
} }
function echo_tree
{
cat << end_of_content
/home/$USER
├── _nextcloud_completion
├── bin
│ ├── ncc (wrapper shortcut for ~/html/occ)
│ ├── nextcloud-update
│ └── notify_push -> /home/$USER/html/apps/notify_push/bin/x86_64/notify_push
├── nextcloud_data
│ └── >> user files, etc. <<
├── html -> /var/www/virtual/$USER/html
│ └── >> Nextcloud installation <<
├── logs
│ ├── nextcloud-cron.log
│ ├── nextcloud-updater.log -> /home/$USER/nextcloud_data/updater.log
│ └── nextcloud.log -> /home/$USER/nextcloud_data/nextcloud.log
└── ...
end_of_content
}
function set_critical_section { set -o pipefail -o errexit; } function set_critical_section { set -o pipefail -o errexit; }
function unset_critical_section { set +o pipefail +o errexit; } function unset_critical_section { set +o pipefail +o errexit; }
@@ -338,8 +360,9 @@ function main
echo "This script installs the latest release of $APP_NAME" echo "This script installs the latest release of $APP_NAME"
echo "and assumes a newly created Uberspace with default settings." echo "and assumes a newly created Uberspace with default settings."
fi fi
echo 'This will be the basic file structure'
echo_tree
echo "Do not run this script if you already use your Uberspace for other apps!" echo "Do not run this script if you already use your Uberspace for other apps!"
if yes_no_question "Do you want to execute this installer for $APP_NAME?" if yes_no_question "Do you want to execute this installer for $APP_NAME?"
then install_nextcloud then install_nextcloud
fi fi