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:
parent
66fcc9480d
commit
03472b967c
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue