mirror of
https://github.com/YunoHost-Apps/noalyss_ynh.git
synced 2024-09-03 19:46:20 +02:00
Fix
This commit is contained in:
parent
8b4b31281a
commit
8bdebcecd1
4 changed files with 9 additions and 8 deletions
|
@ -178,7 +178,7 @@ ynh_use_logrotate
|
|||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
yunohost service add $app --description "Accounting free software" --log "/var/log/$app/$app.log"
|
||||
#yunohost service add $app --description "Accounting free software" --log "/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
|
@ -28,11 +28,11 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|||
#=================================================
|
||||
|
||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||
then
|
||||
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
||||
yunohost service remove $app
|
||||
fi
|
||||
# if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||
# then
|
||||
# ynh_script_progression --message="Removing $app service integration..." --weight=1
|
||||
# yunohost service remove $app
|
||||
# fi
|
||||
|
||||
#=================================================
|
||||
# REMOVE THE POSTGRESQL DATABASE
|
||||
|
|
|
@ -69,6 +69,7 @@ ynh_system_user_create $app
|
|||
|
||||
# Restore permissions on app files
|
||||
chown -R $app: $final_path
|
||||
chown $app: $final_path/include/constant.php
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE PHP-FPM CONFIGURATION
|
||||
|
@ -103,7 +104,7 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
|
|||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
yunohost service add $app --log "/var/log/$app/$app.log"
|
||||
#yunohost service add $app --log "/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -139,7 +139,7 @@ chown $app: $final_path/include/constant.php
|
|||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
yunohost service add $app --description "Accounting free software" --log "/var/log/$app/$app.log"
|
||||
#yunohost service add $app --description "Accounting free software" --log "/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# SETUP APPLICATION WITH CURL
|
||||
|
|
Loading…
Reference in a new issue