1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pelican_ynh.git synced 2024-09-03 19:46:35 +02:00

Update install

This commit is contained in:
Ylies Chahi 2017-08-13 03:39:30 +02:00 committed by GitHub
parent e44f97dd22
commit 74259706c1

View file

@ -1,12 +1,11 @@
#!/bin/bash
# Source app helpers and functions
source _common.sh
source /usr/share/yunohost/helpers
# Exit on command errors and treat unset variables as an error
set -eu
# Source app helpers and functions
source /usr/share/yunohost/helpers
# Retrieve arguments
app=$YNH_APP_INSTANCE_NAME
domain=$YNH_APP_ARG_DOMAIN
@ -20,7 +19,7 @@ location=${path:-/}
# Check domain/path availability
sudo yunohost app checkurl $domain$path -a $app \
|| (echo "Path not available: $domain$path" && exit 1)
|| ynh_die "The path ${domain}${path} is not available for app installation."
# Document root
document_root=/var/www/$app