1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/penpot_ynh.git synced 2024-09-03 19:56:56 +02:00

Fix permissions on $install_dir.

This commit is contained in:
orhtej2 2024-02-11 21:50:04 +01:00
parent 66fcc9480d
commit 03472b967c
2 changed files with 4 additions and 3 deletions

View file

@ -54,7 +54,8 @@ ynh_script_progression --message="Setting up source files..."
ynh_setup_source --dest_dir="$install_dir/build" ynh_setup_source --dest_dir="$install_dir/build"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
chmod -R 755 "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#================================================= #=================================================
# INSTALL APP # INSTALL APP
@ -78,7 +79,7 @@ popd
mkdir -p $install_dir/frontend mkdir -p $install_dir/frontend
mv $install_dir/build/frontend/target/dist/* $install_dir/frontend mv $install_dir/build/frontend/target/dist/* $install_dir/frontend
chown -R $app:www-data $install_dir/frontend chown -R $app:www-data $install_dir/frontend
chmod -R 755 $install_dir/frontend chmod -R 750 $install_dir/frontend
ynh_script_progression --message="Building backend..." --weight=5 ynh_script_progression --message="Building backend..." --weight=5

View file

@ -58,8 +58,8 @@ then
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir/build" ynh_setup_source --dest_dir="$install_dir/build"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
chmod -R 755 "$install_dir"
ynh_script_progression --message="Building frontend..." --weight=5 ynh_script_progression --message="Building frontend..." --weight=5