diff --git a/check_process b/check_process index a0ea7e4..432896c 100644 --- a/check_process +++ b/check_process @@ -20,19 +20,6 @@ multi_instance=1 port_already_use=0 change_url=0 -;;; Levels - Level 1=auto - Level 2=auto - Level 3=auto -# Level 4: - Level 4=0 -# Level 5: - Level 5=auto - Level 6=auto - Level 7=auto - Level 8=0 - Level 9=0 - Level 10=0 ;;; Options Email=anmol@datamol.org Notification=change diff --git a/scripts/backup b/scripts/backup index 0767ff2..fe1f3d0 100644 --- a/scripts/backup +++ b/scripts/backup @@ -29,20 +29,17 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) db_name=$(ynh_app_setting_get --app=$app --key=db_name) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) -#================================================= -# STANDARD BACKUP STEPS -#================================================= -# BACKUP THE APP MAIN DIR -#================================================= -ynh_print_info --message="Backing up YOURLS directory..." - -ynh_backup --src_path="$final_path" - #================================================= # DECLARE DATA AND CONF FILES TO BACKUP #================================================= ynh_print_info --message="Declaring files to be backed up..." +#================================================= +# BACKUP THE APP MAIN DIR +#================================================= + +ynh_backup --src_path="$final_path" + #================================================= # BACKUP THE NGINX CONFIGURATION #================================================= @@ -66,4 +63,4 @@ ynh_mysql_dump_db --database="$db_name" > db.sql # END OF SCRIPT #================================================= -ynh_script_progression --message="Backup script completed for YOURLS. (YunoHost will then actually copy those files to the archive)." +ynh_print_info --message="Backup script completed for YOURLS. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/install b/scripts/install index 53f50ac..7cda4a4 100644 --- a/scripts/install +++ b/scripts/install @@ -94,13 +94,13 @@ ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependenc phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) # copy index file -sudo cp ../conf/index.php $final_path/ +cp ../conf/index.php $final_path/ #================================================= # MODIFY A CONFIG FILE #================================================= -sudo cp ../conf/config.php $final_path/user/config.php +cp ../conf/config.php $final_path/user/config.php ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/user/config.php" ynh_replace_string --match_string="__DB_PASSWORD__" --replace_string="$db_pwd" --target_file="$final_path/user/config.php" diff --git a/scripts/upgrade b/scripts/upgrade index cb263f3..1a66c9b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -85,7 +85,7 @@ cp -a "$tmpdir/.htaccess" "$final_path" cp -a "$tmpdir/user/config.php" "$final_path/user" #remove tmp dir -rm -Rf "$tmpdir" +ynh_secure_remove "$tmpdir" #================================================= # NGINX CONFIGURATION