1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snipeit_ynh.git synced 2024-09-03 20:26:16 +02:00

Update upgrade

This commit is contained in:
yalh76 2022-07-02 21:50:43 +02:00
parent 84c395b3c7
commit be1c5cdc73

View file

@ -133,17 +133,6 @@ ynh_install_composer
ynh_exec_warn_less ynh_composer_exec --commands="dump-autoload" ynh_exec_warn_less ynh_composer_exec --commands="dump-autoload"
#=================================================
# BUILDING
#=================================================
ynh_script_progression --message="Building..."
pushd "$final_path"
php$phpversion artisan migrate -n --force
php$phpversion artisan config:clear -n
php$phpversion artisan config:cache -n
popd
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================
@ -154,9 +143,15 @@ ynh_backup_if_checksum_is_different --file="$final_path/.env"
ynh_store_file_checksum --file="$final_path/.env" ynh_store_file_checksum --file="$final_path/.env"
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # BUILDING
#================================================= #=================================================
ynh_script_progression --message="Securing files and directories..." --weight=1 ynh_script_progression --message="Building..."
pushd "$final_path"
php$phpversion artisan migrate -n --force
php$phpversion artisan config:clear -n
php$phpversion artisan config:cache -n
popd
# Set permissions on app files # Set permissions on app files
chown -R $app:www-data $final_path chown -R $app:www-data $final_path