snapshot si install succeeded

This commit is contained in:
Maniack Crudelis 2017-05-13 00:51:06 +02:00
parent 4d08f36e08
commit 68808638bf

View file

@ -80,7 +80,9 @@ STANDARD_SETUP_APP () {
SETUP_APP
# Then create a snapshot
ECHO_FORMAT "Create a snapshot for sub path installation.\n" "white" clog
subpath_snapshot=$(create_temp_backup)
if [ $yunohost_result -eq 0 ]; then
subpath_snapshot=$(create_temp_backup)
fi
else
# Or uses an existing snapshot
ECHO_FORMAT "Uses an existing snapshot for sub path installation.\n" "white" clog