mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
Add new helpers
This commit is contained in:
parent
0fc1124441
commit
9247925cb2
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
||||||
# Exit on command errors and treat unset variables as an error
|
# Exit on command errors and treat unset variables as an error
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
app=$YUNOHOST_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$YUNOHOST_APP_ARG_DOMAIN
|
domain=$YUNOHOST_APP_ARG_DOMAIN
|
||||||
is_public=$YUNOHOST_APP_ARG_IS_PUBLIC
|
is_public=$YUNOHOST_APP_ARG_IS_PUBLIC
|
||||||
|
@ -12,7 +14,7 @@ is_public=$YUNOHOST_APP_ARG_IS_PUBLIC
|
||||||
ynh_app_setting_set "$app" is_public "$is_public"
|
ynh_app_setting_set "$app" is_public "$is_public"
|
||||||
|
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
. /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain -a "$app" \
|
sudo yunohost app checkurl $domain -a "$app" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue