1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00
This commit is contained in:
Éric Gaspar 2023-10-09 10:09:28 +02:00
parent d7796afb5e
commit 02891bf06d
3 changed files with 14 additions and 6 deletions

View file

@ -84,7 +84,10 @@ pushd $install_dir
php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --external-auth-id="$admin" php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --external-auth-id="$admin"
popd popd
# Set permissions to app files #=================================================
# SET PERMISSIONS
#=================================================
chmod -R o-rwx $install_dir chmod -R o-rwx $install_dir
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
chown -R $app:www-data $install_dir chown -R $app:www-data $install_dir

View file

@ -18,8 +18,9 @@ ynh_restore_file --origin_path="$install_dir"
# Restore permissions on app files # Restore permissions on app files
chmod -R o-rwx $install_dir chmod -R o-rwx $install_dir
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
chown -R $app:www-data $install_dir chown -R $app:www-data $install_dir
chmod 600 $install_dir/.env chmod 640 $install_dir/.env
#================================================= #=================================================
# RESTORE THE MYSQL DATABASE # RESTORE THE MYSQL DATABASE

View file

@ -50,10 +50,6 @@ then
ynh_setup_source --dest_dir="$install_dir" --keep=".env public/uploads storage/uploads" ynh_setup_source --dest_dir="$install_dir" --keep=".env public/uploads storage/uploads"
fi fi
chmod -R o-rwx $install_dir
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
chown -R $app:www-data $install_dir
#================================================= #=================================================
# REAPPLY SYSTEM CONFIGURATIONS # REAPPLY SYSTEM CONFIGURATIONS
#================================================= #=================================================
@ -101,6 +97,14 @@ pushd $install_dir
php$phpversion artisan view:clear php$phpversion artisan view:clear
popd popd
#=================================================
# SET PERMISSIONS
#=================================================
chmod -R o-rwx $install_dir
chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads
chown -R $app:www-data $install_dir
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================