fix test_legacy_app_failed_install

This commit is contained in:
Kayou 2020-01-19 00:00:59 +07:00 committed by GitHub
parent b8e316a6ef
commit 45e653a4cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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