mirror of
https://github.com/YunoHost-Apps/ulogger_ynh.git
synced 2024-10-01 13:34:45 +02:00
cleaning
This commit is contained in:
parent
ab335fb0c8
commit
f87d9ae96b
3 changed files with 29 additions and 2 deletions
23
scripts/change_url
Normal file
23
scripts/change_url
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# GENERIC STARTING
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# MODIFY URL IN NGINX CONF
|
||||
#=================================================
|
||||
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=3
|
||||
|
||||
ynh_change_url_nginx_config
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Change of URL completed for $app" --last
|
|
@ -17,7 +17,9 @@ ynh_script_progression --message="Restoring the app main directory..."
|
|||
|
||||
ynh_restore_file --origin_path="$install_dir"
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
chmod 755 -R $$install_dir
|
||||
chmod -R o-rwx $$install_dir
|
||||
chown -R $app:www-data $$install_dir
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE MYSQL DATABASE
|
||||
|
|
|
@ -27,7 +27,9 @@ then
|
|||
ynh_setup_source --dest_dir="$install_dir" --keep="config.php"
|
||||
fi
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
chmod 755 -R $$install_dir
|
||||
chmod -R o-rwx $$install_dir
|
||||
chown -R $app:www-data $$install_dir
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
|
|
Loading…
Add table
Reference in a new issue