Fix upgrade maybe :<

This commit is contained in:
Alexandre Aubin 2018-12-01 16:11:57 +01:00 committed by ljf (zamentur)
parent 56fa7d6268
commit 8356355da6

View File

@ -24,13 +24,13 @@ upgrade=$([ "${VPNCLIENT_UPGRADE}" == 1 ] && echo true || echo false)
domain=${1}
url_path=${2}
if ! $upgrade; then
source ./helpers
source ./prerequisites
fi
source ./helpers
source ./prerequisites
# Check domain/path availability
ynh_webpath_register vpnclient $domain $url_path || exit 1
if ! $upgrade; then
ynh_webpath_register vpnclient $domain $url_path || exit 1
fi
# Install packages
packages='php5-fpm sipcalc dnsutils openvpn curl fake-hwclock'