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.
This commit is contained in:
anmol26s 2018-06-25 15:42:05 +05:30 committed by GitHub
parent 99fe6fcd54
commit cb991bb6f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"