1
0
Fork 0
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:
Thomas 2024-05-02 08:52:25 +02:00 committed by GitHub
parent e8384c2219
commit 1c53345c7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,6 +87,9 @@ then
ynh_setup_source --dest_dir="$install_dir/build" --full_replace=1 ynh_setup_source --dest_dir="$install_dir/build" --full_replace=1
fi fi
# full replace on live dir
ynh_secure_remove "$install_dir/live"
chmod 750 "$install_dir" chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$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" ynh_secure_remove --file="$install_dir/live/services/web/node_modules/.cache"
popd popd
#remove build dir
ynh_secure_remove "$install_dir/build"
chmod 750 "$install_dir/live" chmod 750 "$install_dir/live"
chmod -R o-rwx "$install_dir/live" chmod -R o-rwx "$install_dir/live"
chown -R $app:www-data "$install_dir/live" chown -R $app:www-data "$install_dir/live"