Browse Source

[fix] Backup var unset

zamentur 8 years ago
parent
commit
82d411f1f7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/backup

+ 2 - 2
scripts/backup

@@ -10,11 +10,11 @@ app=$YNH_APP_INSTANCE_NAME
 . /usr/share/yunohost/helpers
 
 # Backup sources & data
-ynh_backup "/opt/$APP" "sources"
+ynh_backup "/opt/$app" "sources"
 
 # Copy NGINX configuration
 domain=$(ynh_app_setting_get "$app" domain)
 ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf"
 
 # Copy Gunicorn pool configuration
-ynh_backup "/etc/systemd/system/$APP.service" "gunicorn.service"
+ynh_backup "/etc/systemd/system/$app.service" "gunicorn.service"