mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
fix
This commit is contained in:
parent
759b231cc9
commit
98ad6063bd
3 changed files with 7 additions and 2 deletions
|
@ -67,7 +67,7 @@ pushd "$install_dir"
|
|||
popd
|
||||
|
||||
chown -R "$app:www-data" "$install_dir"
|
||||
chmod -R 775 /home/yunohost.app/lychee/
|
||||
chmod -R 775 /home/yunohost.app/$app/
|
||||
chgrp "$app" -R "$install_dir/storage" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads"
|
||||
chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads" "$install_dir/bootstrap/"
|
||||
|
||||
|
|
|
@ -19,6 +19,8 @@ ynh_restore_file --origin_path="$install_dir"
|
|||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R "$app:www-data" "$install_dir"
|
||||
chgrp "$app" -R "$install_dir/storage" "$install_dir/public/dist" "$install_dir/public/sym"
|
||||
chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public/dist" "$install_dir/public/sym" "$install_dir/bootstrap/"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE DATA DIRECTORY
|
||||
|
@ -27,7 +29,10 @@ ynh_script_progression --message="Restoring the data directory..." --weight=1
|
|||
|
||||
ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
||||
|
||||
chmod -R 775 "$data_dir"
|
||||
chown -R "$app:www-data" "$data_dir"
|
||||
chgrp "$app" -R "$data_dir/uploads"
|
||||
chmod -R 2775 "$data_dir/uploads"
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEM CONFIGURATIONS
|
||||
|
|
|
@ -66,7 +66,7 @@ pushd "$install_dir"
|
|||
popd
|
||||
|
||||
chown -R "$app:www-data" "$install_dir"
|
||||
chmod -R 775 /home/yunohost.app/lychee/
|
||||
chmod -R 775 /home/yunohost.app/$app/
|
||||
chgrp "$app" -R "$install_dir/storage" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads"
|
||||
chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads" "$install_dir/bootstrap/"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue