1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cheky_ynh.git synced 2024-09-03 18:16:00 +02:00
This commit is contained in:
ericgaspar 2021-07-19 10:40:09 +02:00
parent e893c91b41
commit 719128879e
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 11 additions and 11 deletions

View file

@ -4,7 +4,7 @@
path="/path"
admin="john"
is_public=1
password="pass"
password="password"
; Checks
pkg_linter=1
setup_sub_dir=1

View file

@ -3,8 +3,8 @@
"id": "cheky",
"packaging_format": 1,
"description": {
"en": "Monitors French classifieds websites LeBonCoin and SeLoger.",
"fr": "Surveille pour vous LeBonCoin et SeLoger."
"en": "Monitors French classifieds websites LeBonCoin and SeLoger",
"fr": "Surveille pour vous LeBonCoin et SeLoger"
},
"version": "4.4.1~ynh4",
"url": "https://www.cheky.net",

View file

@ -23,9 +23,9 @@ ynh_print_info "Loading installation settings..."
app=$YNH_APP_INSTANCE_NAME
final_path=$(ynh_app_setting_get $app final_path)
domain=$(ynh_app_setting_get $app domain)
db_name=$(ynh_app_setting_get $app db_name)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
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)
#=================================================
@ -37,32 +37,32 @@ ynh_print_info --message="Declaring files to be backed up..."
# BACKUP THE APP MAIN DIR
#=================================================
ynh_backup "$final_path"
ynh_backup --src_path="$final_path"
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP THE PHP-FPM CONFIGURATION
#=================================================
ynh_backup "/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# BACKUP THE MYSQL DATABASE
#=================================================
ynh_print_info "Backing up the MySQL database..."
ynh_mysql_dump_db "$db_name" > db.sql
ynh_mysql_dump_db --database="$db_name" > db.sql
#=================================================
# BACKUP A CRON FILE
#=================================================
ynh_backup "/etc/cron.d/$app"
ynh_backup --src_path="/etc/cron.d/$app"
#=================================================
# END OF SCRIPT