From 45e653a4cf23ac3d6afee02783c6401ed1058db7 Mon Sep 17 00:00:00 2001 From: Kayou Date: Sun, 19 Jan 2020 00:00:59 +0700 Subject: [PATCH] fix test_legacy_app_failed_install --- legacy_app_ynh/scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy_app_ynh/scripts/install b/legacy_app_ynh/scripts/install index 1244cc0..d76ef82 100644 --- a/legacy_app_ynh/scripts/install +++ b/legacy_app_ynh/scripts/install @@ -10,6 +10,9 @@ is_public=$YNH_APP_ARG_IS_PUBLIC # Check domain/path availability sudo yunohost app checkurl $domain/$path -a $app +# Check folder availability +test ! -e "/var/www/$app/" + # Add config for nginx sudo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sudo sed -i "s@FOLDER@$app/@g" ../conf/nginx.conf