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:
parent
99fe6fcd54
commit
cb991bb6f3
|
@ -209,6 +209,12 @@ fi
|
||||||
# Give permisiion to the final_path
|
# Give permisiion to the final_path
|
||||||
chown -R "$app":"$app" "$final_path" "$datadir"
|
chown -R "$app":"$app" "$final_path" "$datadir"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RELOAD NGINX
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
systemctl reload nginx
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# 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
|
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
|
# SEND A README FOR THE ADMIN
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -244,6 +243,7 @@ message="PeerTube was successfully installed :)
|
||||||
|
|
||||||
Please open 'https://$domain$path_url'
|
Please open 'https://$domain$path_url'
|
||||||
|
|
||||||
|
The admin username is: root
|
||||||
Here is the admin password: '$admin_pass'
|
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"
|
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"
|
||||||
|
|
Loading…
Reference in a new issue