From e0808e3b1d1d7f93dce2a46c72bc142c7c5e6399 Mon Sep 17 00:00:00 2001 From: nicedevil007 <17103076+nicedevil007@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:45:41 +0200 Subject: [PATCH 1/2] Update alpine-nextcloud-install.sh --- install/alpine-nextcloud-install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install/alpine-nextcloud-install.sh b/install/alpine-nextcloud-install.sh index 88cd1ed9..d872334d 100644 --- a/install/alpine-nextcloud-install.sh +++ b/install/alpine-nextcloud-install.sh @@ -166,7 +166,7 @@ sed -i -e 's|;opcache.memory_consumption=128|opcache.memory_consumption=128|' /e sed -i -e 's|;opcache.save_comments=1|opcache.save_comments=1|' /etc/php82/php.ini sed -i -e 's|;opcache.revalidate_freq=1|opcache.revalidate_freq=1|' /etc/php82/php.ini rc-update add redis -rc-service redis start +rc-service redis start > /dev/null 2>&1 msg_ok "Set up PHP-opcache + Redis" msg_info "Setting up Nextcloud-Cron" @@ -224,14 +224,15 @@ $CONFIG = array ( 'installed' => false, ); EOF -msg_ok "Set up Nextcloud-Config" - -msg_info "Starting Alpine-Nextcloud" $STD rc-service php-fpm82 start $STD chown -R nextcloud:www-data /var/log/nextcloud/ $STD rc-update add nginx default $STD rc-update add nextcloud default +msg_ok "Set up Nextcloud-Config" + cat ~/nextcloud.creds + +msg_info "Starting Alpine-Nextcloud" $STD reboot msg_ok "Started Alpine-Nextcloud" From 6bfeca9f57a39017f799f8fa409efb924fc975d6 Mon Sep 17 00:00:00 2001 From: nicedevil007 <17103076+nicedevil007@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:49:05 +0200 Subject: [PATCH 2/2] output creds --- ct/alpine-nextcloud.sh | 6 +++++- install/alpine-nextcloud-install.sh | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ct/alpine-nextcloud.sh b/ct/alpine-nextcloud.sh index 4a8e4761..9c8574f7 100644 --- a/ct/alpine-nextcloud.sh +++ b/ct/alpine-nextcloud.sh @@ -83,4 +83,8 @@ description msg_ok "Completed Successfully!\n" echo -e "${APP} should be reachable by going to the following URL. - ${BL}https://${IP}:443${CL} \n" + ${BL}https://${IP}${CL} \n\n + Database Name: ${DB_NAME} + Database User: ${DB_USER} + Database Password: ${DB_PASS} + MySQL Root Password: ${ROOT_PASS}" diff --git a/install/alpine-nextcloud-install.sh b/install/alpine-nextcloud-install.sh index d872334d..9e425b9b 100644 --- a/install/alpine-nextcloud-install.sh +++ b/install/alpine-nextcloud-install.sh @@ -45,6 +45,7 @@ $STD mysql -uroot -p$ROOT_PASS -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localh $STD mysql -uroot -p$ROOT_PASS -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost.localdomain' IDENTIFIED BY '$DB_PASS';" $STD mysql -uroot -p$ROOT_PASS -e "FLUSH PRIVILEGES;" echo "" >>~/nextcloud.creds +echo -e "MySQL Root Password: \e[32m$ROOT_PASS\e[0m" >>~/nextcloud.creds echo -e "Nextcloud Database User: \e[32m$DB_USER\e[0m" >>~/nextcloud.creds echo -e "Nextcloud Database Password: \e[32m$DB_PASS\e[0m" >>~/nextcloud.creds echo -e "Nextcloud Database Name: \e[32m$DB_NAME\e[0m" >>~/nextcloud.creds