From 6ff8b2edefc7dbd05585b77786c1446f4c1c5fd0 Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Fri, 9 Jun 2023 12:37:20 +0200 Subject: [PATCH] feat(Nextcloud): add file tree output --- nextcloud-installer.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/nextcloud-installer.sh b/nextcloud-installer.sh index e04fd70..92dbbbb 100644 --- a/nextcloud-installer.sh +++ b/nextcloud-installer.sh @@ -321,6 +321,27 @@ function yes_no_question 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 unset_critical_section { set +o pipefail +o errexit; } @@ -338,8 +359,9 @@ function main echo "This script installs the latest release of $APP_NAME" echo "and assumes a newly created Uberspace with default settings." 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!" - if yes_no_question "Do you want to execute this installer for $APP_NAME?" then install_nextcloud fi