1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/agendav_ynh.git synced 2024-09-03 20:36:12 +02:00

Remove skipped_uris and replace restart by reload

This commit is contained in:
Jean-Baptiste Holcroft 2017-11-05 22:33:38 +01:00
parent 949faa6428
commit 0553ce4b9c
4 changed files with 11 additions and 10 deletions

View file

@ -7,6 +7,11 @@
# IMPORT GENERIC HELPERS
#=================================================
if [ ! -e _common.sh ]; then
# Get the _common.sh file if it's not in the current directory
cp ../settings/scripts/_common.sh ./_common.sh
chmod a+rx _common.sh
fi
source _common.sh
source /usr/share/yunohost/helpers
@ -27,7 +32,6 @@ db_name=$app
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
path_url=$(ynh_app_setting_get "$app" path)
final_path=$(ynh_app_setting_get "$app" final_path)
#=================================================

View file

@ -91,9 +91,8 @@ ynh_install_app_dependencies php5-cli
# Initialize database
dbpass=$(ynh_string_random)
ynh_app_setting_set "$app" mysqlpwd "$dbpass"
ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass"
ynh_mysql_setup_db "$dbname" "$dbuser" "$dbpass"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -202,13 +201,12 @@ chmod -R o-rwx "${final_path}/web/config/"
# SETUP SSOWAT
#=================================================
# Remove the public access
ynh_app_setting_delete "$app" skipped_uris
# Nothing to do, this app is private
#=================================================
# RELOAD NGINX and FPM
#=================================================
# Reload services
service php5-fpm restart
service php5-fpm reload
service nginx reload

View file

@ -122,5 +122,5 @@ chown -R "$app": "$LOGDIR"
# RELOAD NGINX AND PHP-FPM
#=================================================
service php5-fpm restart
service php5-fpm reload
service nginx reload

View file

@ -214,13 +214,12 @@ chmod -R o-rwx "${final_path}/web/config/"
# SETUP SSOWAT
#=================================================
# Remove the public access
ynh_app_setting_delete "$app" skipped_uris
# Nothing to do, this app is private
#=================================================
# RELOAD NGINX and FPM
#=================================================
# Reload services
service php5-fpm restart
service php5-fpm reload
service nginx reload