1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ulogger_ynh.git synced 2024-10-01 13:34:45 +02:00
This commit is contained in:
ericgaspar 2023-09-02 08:01:58 +02:00
parent ab335fb0c8
commit f87d9ae96b
3 changed files with 29 additions and 2 deletions

23
scripts/change_url Normal file
View 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

View file

@ -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

View file

@ -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