diff --git a/scripts/backup b/scripts/backup index 10a9c9c..f0c4772 100755 --- a/scripts/backup +++ b/scripts/backup @@ -7,7 +7,7 @@ set -eu backup_dir=$1 # The parameter $2 is theid of the app instance -app=$2 +app=$YNH_APP_INSTANCE_NAME # Source app helpers source /usr/share/yunohost/helpers diff --git a/scripts/restore b/scripts/restore index 0a4287d..5c83796 100755 --- a/scripts/restore +++ b/scripts/restore @@ -8,7 +8,7 @@ set -eu backup_dir=$1 # The parameter $2 is the id of the app instance ex: ynhexample__2 -app=$2 +app=$YNH_APP_INSTANCE_NAME # Source app helpers source /usr/share/yunohost/helpers