1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fider_ynh.git synced 2024-09-03 18:36:11 +02:00

Install in /var/www

This commit is contained in:
Félix Piédallu 2022-10-07 15:02:43 +02:00 committed by Félix Piédallu
parent df31389e04
commit aae5bc4571

View file

@ -72,6 +72,12 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
# Moved fron /opt to /var/www
if [ -d "/opt/yunohost/$app" ]; then
rm -rf "$final_path"
mv "/opt/yunohost/$app" "$final_path"
fi
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1