From 11cf11434bbb7d53563b6920ec0b1f6924ba8844 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sat, 25 Feb 2017 00:14:58 +0000 Subject: [PATCH] Use ynh_die instead of exit 1 --- scripts/restore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index fdbe91d..e8a19dc 100644 --- a/scripts/restore +++ b/scripts/restore @@ -15,14 +15,14 @@ db_pwd=$(ynh_app_setting_get $app mysqlpwd) if [ -d $final_path ]; then echo "There is already a directory: $final_path " >&2 - exit 1 + ynh_die fi # Restore Nginx conf=/etc/nginx/conf.d/$domain.d/$app.conf if [ -f $conf ]; then echo "There is already a nginx conf file at this path: $conf " >&2 - exit 1 + ynh_die fi sudo cp -a ./nginx.conf $conf