From cb991bb6f33ee13e79cc0458f7ca0251bc86018c Mon Sep 17 00:00:00 2001 From: anmol26s <5068843+anmol26s@users.noreply.github.com> Date: Mon, 25 Jun 2018 15:42:05 +0530 Subject: [PATCH] Few changes to be tested in the install script The email should have the username too along with the password. The nginx should be reloaded before the systemd and password generation to fix https://github.com/YunoHost-Apps/peertube_ynh/issues/30(guess work). These changes were due to be tested along side the next release. --- scripts/install | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index c05d617..d447373 100644 --- a/scripts/install +++ b/scripts/install @@ -209,6 +209,12 @@ fi # Give permisiion to the final_path chown -R "$app":"$app" "$final_path" "$datadir" +#================================================= +# RELOAD NGINX +#================================================= + +systemctl reload nginx + #================================================= # SETUP SYSTEMD #================================================= @@ -229,13 +235,6 @@ systemctl start "$app" echo $admin_pass | NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production PATH="/opt/node_n/bin:$PATH" npm run reset-password -- -u root ) - -#================================================= -# RELOAD NGINX -#================================================= - -systemctl reload nginx - #================================================= # SEND A README FOR THE ADMIN #================================================= @@ -244,6 +243,7 @@ message="PeerTube was successfully installed :) Please open 'https://$domain$path_url' +The admin username is: root Here is the admin password: '$admin_pass' If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/peertube_ynh"