From a34d8db6195b56679c1552e936e668a7ac3606c9 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Mon, 31 Jul 2017 12:08:59 +0200 Subject: [PATCH] Fix app_id error --- sub_scripts/launcher.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sub_scripts/launcher.sh b/sub_scripts/launcher.sh index 828ae0d..7634cbb 100755 --- a/sub_scripts/launcher.sh +++ b/sub_scripts/launcher.sh @@ -98,6 +98,10 @@ use_temp_snapshot () { sudo rsync --acls --archive --delete --executability --itemize-changes --xattrs "$snapshot_path/$current_snapshot/rootfs/" "/var/lib/lxc/$lxc_name/rootfs/" > /dev/null 2>> "$test_result" stop_timer 1 + + # Retrieve the app id in the log. To manage the app after + ynh_app_id=$(sudo tac "$yunohost_log" | grep --only-matching --max-count=1 "YNH_APP_INSTANCE_NAME=[^ ]*" | cut --delimiter='=' --fields=2) + # Fake the yunohost_result return code of the installation yunohost_result=0 }