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

Add _common.sh

This commit is contained in:
Rafi59 2017-06-09 15:45:50 +02:00 committed by GitHub
parent a7d6355614
commit 01b0fce822

View file

@ -3,6 +3,12 @@
# Exit on command errors and treat unset variables as an error
set -eu
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
app=$YUNOHOST_APP_INSTANCE_NAME
# Retrieve arguments
@ -13,8 +19,6 @@ is_public=$YUNOHOST_APP_ARG_IS_PUBLIC
ynh_app_setting_set "$app" is_public "$is_public"
# Source YunoHost helpers
source /usr/share/yunohost/helpers
# Check domain/path availability
sudo yunohost app checkurl $domain -a "$app" \