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:
parent
a7d6355614
commit
01b0fce822
1 changed files with 6 additions and 2 deletions
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue