mirror of
https://github.com/YunoHost-Apps/icecoder_ynh.git
synced 2024-09-03 19:26:10 +02:00
Update restore
This commit is contained in:
parent
3067ed6174
commit
371c9b47ba
1 changed files with 2 additions and 7 deletions
|
@ -27,7 +27,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||
app_id=$(ynh_app_setting_get --app=$app --key=app_id)
|
||||
|
||||
#=================================================
|
||||
# CHECK IF THE APP CAN BE RESTORED
|
||||
|
@ -58,12 +58,7 @@ ynh_restore_file --origin_path="$final_path"
|
|||
# RESTORE USER RIGHTS
|
||||
#=================================================
|
||||
|
||||
if [[ $path_url =~ my_webapp ]]
|
||||
then
|
||||
chown -R my_webapp $final_path
|
||||
else
|
||||
chown -R www-data.www-data $final_path
|
||||
fi
|
||||
chown -R $app_id $final_path
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE LOGROTATE CONFIGURATION
|
||||
|
|
Loading…
Add table
Reference in a new issue