diff --git a/scripts/backup b/scripts/backup index 69dd047..9d63962 100755 --- a/scripts/backup +++ b/scripts/backup @@ -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 #================================================= diff --git a/scripts/change_url b/scripts/change_url index c9e593b..a4fcb69 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -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 #================================================= diff --git a/scripts/install b/scripts/install index 13b41a3..21704ee 100755 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index 30792d2..145220e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -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 +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$install_dir" chown -R $app:www-data "$install_dir"