diff --git a/scripts/backup b/scripts/backup index e40fc73..30f2c81 100755 --- a/scripts/backup +++ b/scripts/backup @@ -29,9 +29,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" -#================================================= -# BACKUP THE MYSQL DATABASE -#================================================= #================================================= # BACKUP THE MYSQL DATABASE #================================================= diff --git a/scripts/install b/scripts/install index d830cb7..4dc5cd0 100755 --- a/scripts/install +++ b/scripts/install @@ -13,9 +13,6 @@ source /usr/share/yunohost/helpers # INITIALIZE AND STORE SETTINGS #================================================= -database="mysql" -ynh_app_setting_set --app="$app" --key=database --value="$database" - random_key=$(ynh_string_random --length=32) ynh_app_setting_set --app="$app" --key=random_key --value="$random_key" diff --git a/scripts/restore b/scripts/restore index ff226f6..7dfd110 100755 --- a/scripts/restore +++ b/scripts/restore @@ -27,10 +27,9 @@ setfacl -R -m g:"www-data":rwX -m u:"$app":rwX "$install_dir/var/" #================================================= # RESTORE THE MYSQL DATABASE #================================================= -if [ "$database" = "mysql" ]; then - ynh_script_progression --message="Restoring the MySQL database..." --weight=1 - ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql -fi +ynh_script_progression --message="Restoring the MySQL database..." --weight=1 + +ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql #================================================= # RESTORE SYSTEM CONFIGURATIONS diff --git a/scripts/upgrade b/scripts/upgrade index 8d41640..98fa655 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -14,15 +14,6 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 -if [ "$database" == "sqlite" ]; then - ynh_script_progression --message="Sqlite is not supported by Kimai2 anymore..." - ynh_script_progression --message="Kimai2 will be upgraded to last available version : 1.13" - if ynh_compare_current_package_version --comparison ge --version 1.17.1~ynh1; then - ynh_script_progression --message="Kimai2 sqlite version is already to the last available version, no upgrade will be made" - ynh_die --message="" 0 - fi -fi - if [ -z "${registration:-}" ]; then registration=0 ynh_app_setting_set --app="$app" --key=registration --value="$registration"