1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/UMS_ynh.git synced 2024-10-01 13:35:01 +02:00

Update install

This commit is contained in:
Éric Gaspar 2023-03-14 08:43:55 +01:00
parent 5074277ba3
commit 0c79bac16f

View file

@ -13,7 +13,6 @@ source /usr/share/yunohost/helpers
# RETRIEVE ARGUMENTS FROM THE MANIFEST # RETRIEVE ARGUMENTS FROM THE MANIFEST
#================================================= #=================================================
#upstream_version=$YNH_APP_MANIFEST_VERSION
upstream_version=$(ynh_app_upstream_version) upstream_version=$(ynh_app_upstream_version)
#================================================= #=================================================
@ -52,7 +51,7 @@ chown root:$app "$install_dir/UMS.sh"
ynh_script_progression --message="Configuring NGINX web server..." --weight=4 ynh_script_progression --message="Configuring NGINX web server..." --weight=4
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config "port_web" ynh_add_nginx_config
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD
@ -68,20 +67,18 @@ ynh_add_systemd_config
ynh_script_progression --message="Setting up configuration file.." --weight=5 ynh_script_progression --message="Setting up configuration file.." --weight=5
#UMS read config file from .config/UMS folder #UMS read config file from .config/UMS folder
mkdir -p "/home/yunohost.app/$app/.config/UMS" mkdir -p "$install_dir/.config/UMS"
ynh_add_config --template="UMS.conf.default" --destination="/home/yunohost.app/$app/.config/UMS/UMS.conf" ynh_add_config --template="UMS.conf.default" --destination="$install_dir/.config/UMS/UMS.conf"
ynh_add_config --template="WEB.conf.default" --destination="/home/yunohost.app/$app/.config/UMS/WEB.conf" ynh_add_config --template="WEB.conf.default" --destination="$install_dir/.config/UMS/WEB.conf"
ynh_add_config --template="VirtualFolders.conf.default" --destination="/home/yunohost.app/$app/.config/UMS/VirtualFolders.conf" ynh_add_config --template="VirtualFolders.conf.default" --destination="$install_dir/.config/UMS/VirtualFolders.conf"
chown -R $app:$app "/home/yunohost.app/$app/.config" chown -R $app:$app "$install_dir/.config"
chmod -R 700 "/home/yunohost.app/$app/.config" chmod -R 700 "$install_dir/.config"
#chmod 600 "/home/yunohost.app/$app/.config/UMS/*"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
#================================================= #=================================================
ynh_script_progression --message="Configuring log rotation..." --weight=1 ynh_script_progression --message="Configuring log rotation..." --weight=1
#TO BE CHECKED : debug.log file in ~/.config/UMS/ #TO BE CHECKED : debug.log file in ~/.config/UMS/