1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/koel_ynh.git synced 2024-09-03 19:35:54 +02:00
This commit is contained in:
Éric Gaspar 2024-07-22 21:16:26 +02:00
parent 17d72ecd9e
commit 2071e7b6cd
4 changed files with 5 additions and 38 deletions

View file

@ -28,23 +28,13 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="$data_dir" --is_big
#=================================================
# BACKUP THE NGINX CONFIGURATION
# SYSTEM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP THE PHP-FPM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# SPECIFIC BACKUP
#=================================================
# BACKUP VARIOUS FILES
#=================================================
#=================================================
# BACKUP THE MYSQL DATABASE
#=================================================

View file

@ -18,16 +18,6 @@ ynh_script_progression --message="Updating NGINX web server configuration..." --
ynh_change_url_nginx_config
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# ...
#=================================================
#=================================================
# GENERIC FINALISATION
#=================================================
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -19,7 +19,6 @@ ynh_script_progression --message="Setting up source files..." --weight=1
ynh_setup_source --dest_dir="$install_dir"
chown -R $app:www-data "$install_dir"
chown -R $app:www-data "$data_dir"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -44,7 +43,7 @@ ynh_add_config --template="env" --destination="$install_dir/.env"
#=================================================
# INITIALIZE THE APP
#=================================================
ynh_script_progression --message="Initializing Koel..." --weight=1
ynh_script_progression --message="Initializing $app..." --weight=1
pushd $install_dir
ynh_exec_as $app php$phpversion artisan koel:init --no-assets --no-interaction --quiet

View file

@ -9,27 +9,15 @@
source _common.sh
source /usr/share/yunohost/helpers
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
#=================================================
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
fi
chown -R $app:www-data "$install_dir"