mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
Stupid mistake
This commit is contained in:
parent
2a7698f0bc
commit
b35450d2dc
1 changed files with 4 additions and 4 deletions
|
@ -74,6 +74,10 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
||||
# Void and recreate final_path
|
||||
ynh_secure_remove --file="$final_path"
|
||||
ynh_exec_warn_less mkdir "$final_path"
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
@ -82,10 +86,6 @@ then
|
|||
ynh_setup_source --dest_dir="$final_path" --keep="config.php"
|
||||
fi
|
||||
|
||||
# Void and recreate final_path
|
||||
ynh_secure_remove --file="$final_path"
|
||||
ynh_exec_warn_less mkdir "$final_path"
|
||||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
|
Loading…
Add table
Reference in a new issue