1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[enh] scripts: use helpers.

This commit is contained in:
Moul 2016-06-23 11:12:33 +00:00
parent 195596f036
commit 6705e38248

View file

@ -19,10 +19,8 @@ version=$(cat ../conf/upstream_version)
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
# Check domain/path availability # Check domain/path availability
sudo yunohost app checkurl $domain$path -a $app sudo yunohost app checkurl "${domain}${path}" -a "$app" \
if [[ ! $? -eq 0 ]]; then || ynh_die "Path not available: ${domain}${path}"
exit 1
fi
# Check port availability # Check port availability
sudo yunohost app checkport $port sudo yunohost app checkport $port
@ -74,7 +72,7 @@ sudo $app start
sudo yunohost service add $app --log /home/admin/.config/$app/"$app"_default/"$app".log sudo yunohost service add $app --log /home/admin/.config/$app/"$app"_default/"$app".log
# SSOwat Configuration # SSOwat Configuration
sudo yunohost app setting $app skipped_uris -v "/" ynh_app_setting_set "$app" unprotected_uris "/"
# Configure Nginx # Configure Nginx
nginx_conf="../conf/nginx.conf" nginx_conf="../conf/nginx.conf"