Преглед на файлове

[enh] make backup and restore scripts multiinstance too

Julien Malik преди 9 години
родител
ревизия
e63364f393
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      scripts/backup
  2. 1 1
      scripts/restore

+ 1 - 1
scripts/backup

@@ -3,7 +3,7 @@
 # causes the shell to exit if any subcommand or pipeline returns a non-zero status
 # causes the shell to exit if any subcommand or pipeline returns a non-zero status
 set -e
 set -e
 
 
-app=ynhexample
+app=$YNH_APP_INSTANCE_NAME
 
 
 # The parameter $1 is the backup directory location
 # The parameter $1 is the backup directory location
 # which will be compressed afterward
 # which will be compressed afterward

+ 1 - 1
scripts/restore

@@ -3,7 +3,7 @@
 # causes the shell to exit if any subcommand or pipeline returns a non-zero status
 # causes the shell to exit if any subcommand or pipeline returns a non-zero status
 set -e
 set -e
 
 
-app=ynhexample
+app=$YNH_APP_INSTANCE_NAME
 
 
 # The parameter $1 is the uncompressed restore directory location
 # The parameter $1 is the uncompressed restore directory location
 backup_dir=$1/apps/$app
 backup_dir=$1/apps/$app