mirror of
https://github.com/YunoHost-Apps/overleaf_ynh.git
synced 2024-09-03 19:56:27 +02:00
ynh_secure_remove on some dirs
This commit is contained in:
parent
e8384c2219
commit
1c53345c7e
1 changed files with 6 additions and 0 deletions
|
@ -87,6 +87,9 @@ then
|
|||
ynh_setup_source --dest_dir="$install_dir/build" --full_replace=1
|
||||
fi
|
||||
|
||||
# full replace on live dir
|
||||
ynh_secure_remove "$install_dir/live"
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
@ -158,6 +161,9 @@ pushd "$install_dir/live/services/web"
|
|||
ynh_secure_remove --file="$install_dir/live/services/web/node_modules/.cache"
|
||||
popd
|
||||
|
||||
#remove build dir
|
||||
ynh_secure_remove "$install_dir/build"
|
||||
|
||||
chmod 750 "$install_dir/live"
|
||||
chmod -R o-rwx "$install_dir/live"
|
||||
chown -R $app:www-data "$install_dir/live"
|
||||
|
|
Loading…
Reference in a new issue