Merge pull request #7 from kay0u/patch-2

fix test_legacy_app_failed_install
This commit is contained in:
Kayou 2020-03-04 11:11:23 +01:00 committed by GitHub
commit e79ab11a39
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