mirror of
https://github.com/YunoHost-Apps/itflow_ynh.git
synced 2024-09-03 19:26:24 +02:00
cleaning
This commit is contained in:
parent
6cf49bfb5b
commit
2b006aaf4c
5 changed files with 8 additions and 23 deletions
|
@ -1,3 +0,0 @@
|
||||||
This is a dummy admin doc for this app
|
|
||||||
|
|
||||||
The app install dir is `__INSTALL_DIR__`
|
|
|
@ -1,3 +0,0 @@
|
||||||
Ceci est une fausse doc d'admin pour cette app
|
|
||||||
|
|
||||||
Le dossier d'install de l'app est `__INSTALL_DIR__`
|
|
|
@ -41,12 +41,12 @@ chmod 644 "/etc/cron.d/$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADD A CONFIGURATION
|
# ADD A CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
#ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
#ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
||||||
|
|
||||||
chmod 400 "$install_dir/config.php"
|
#chmod 400 "$install_dir/config.php"
|
||||||
chown $app:$app "$install_dir/config.php"
|
#chown $app:$app "$install_dir/config.php"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -46,8 +46,6 @@ ynh_restore_file --origin_path="/etc/cron.d/$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
|
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
|
||||||
|
|
||||||
# Typically you only have either $app or php-fpm but not both at the same time...
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
|
||||||
ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
|
ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
|
||||||
|
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
ynh_systemd_action --service_name=nginx --action=reload
|
||||||
|
|
|
@ -48,19 +48,12 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE A CONFIG FILE
|
# UPDATE A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
#ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
#ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
||||||
|
|
||||||
chmod 400 "$install_dir/config.php"
|
#chmod 400 "$install_dir/config.php"
|
||||||
chown $app:$app "$install_dir/config.php"
|
#chown $app:$app "$install_dir/config.php"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# START SYSTEMD SERVICE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Reference in a new issue