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

Update install

This commit is contained in:
Éric Gaspar 2023-03-08 19:36:42 +01:00
parent b58da1a748
commit 2c4f09eb9b

View file

@ -66,9 +66,13 @@ ynh_script_progression --message="Creating a data directory..." --weight=1
mkdir -p $data_dir/uploads
mkdir -p $data_dir/uploads/{big,import,medium,raw,small,thumb}
chmod 770 "$data_dir/uploads/"
chmod -R o-rwx "$data_dir/uploads/"
chown -R $app:$app "$data_dir/uploads/"
#chmod 770 "$data_dir/uploads/"
#chmod -R o-rwx "$data_dir/uploads/"
#chown -R $app:$app "$data_dir/uploads/"
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/
chmod 2775 $install_dir/.
#=================================================
# INSTALL APP WITH COMPOSER
@ -102,11 +106,6 @@ popd
# Setup custom user.css file
ynh_add_config --template="../conf/user.css.example" --destination="$install_dir/public/dist/user.css"
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/
chmod 2775 $install_dir/.
#=================================================
# END OF SCRIPT
#=================================================