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:
parent
949faa6428
commit
0553ce4b9c
4 changed files with 11 additions and 10 deletions
|
@ -7,6 +7,11 @@
|
||||||
# IMPORT GENERIC HELPERS
|
# 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 _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
@ -27,7 +32,6 @@ db_name=$app
|
||||||
|
|
||||||
# Retrieve app settings
|
# Retrieve app settings
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
domain=$(ynh_app_setting_get "$app" domain)
|
||||||
path_url=$(ynh_app_setting_get "$app" path)
|
|
||||||
final_path=$(ynh_app_setting_get "$app" final_path)
|
final_path=$(ynh_app_setting_get "$app" final_path)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -91,9 +91,8 @@ ynh_install_app_dependencies php5-cli
|
||||||
|
|
||||||
# Initialize database
|
# Initialize database
|
||||||
dbpass=$(ynh_string_random)
|
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
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
@ -202,13 +201,12 @@ chmod -R o-rwx "${final_path}/web/config/"
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Remove the public access
|
# Nothing to do, this app is private
|
||||||
ynh_app_setting_delete "$app" skipped_uris
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX and FPM
|
# RELOAD NGINX and FPM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
service php5-fpm restart
|
service php5-fpm reload
|
||||||
service nginx reload
|
service nginx reload
|
||||||
|
|
|
@ -122,5 +122,5 @@ chown -R "$app": "$LOGDIR"
|
||||||
# RELOAD NGINX AND PHP-FPM
|
# RELOAD NGINX AND PHP-FPM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
service php5-fpm restart
|
service php5-fpm reload
|
||||||
service nginx reload
|
service nginx reload
|
||||||
|
|
|
@ -214,13 +214,12 @@ chmod -R o-rwx "${final_path}/web/config/"
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Remove the public access
|
# Nothing to do, this app is private
|
||||||
ynh_app_setting_delete "$app" skipped_uris
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX and FPM
|
# RELOAD NGINX and FPM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
service php5-fpm restart
|
service php5-fpm reload
|
||||||
service nginx reload
|
service nginx reload
|
||||||
|
|
Loading…
Add table
Reference in a new issue