mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
remove un needed helper
This commit is contained in:
parent
cff7662998
commit
14475a0da1
1 changed files with 8 additions and 23 deletions
|
@ -30,18 +30,6 @@ path_url="/"
|
|||
port=10901
|
||||
admin=$YNH_APP_ARG_ADMIN
|
||||
|
||||
#=================================================
|
||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||
#=================================================
|
||||
|
||||
# Normalize the url path syntax
|
||||
path_url=$(ynh_normalize_url_path $path_url)
|
||||
|
||||
# Check web path availability
|
||||
ynh_webpath_available $domain $path_url
|
||||
# Register (book) web path
|
||||
ynh_webpath_register $app $domain $path_url
|
||||
|
||||
#=================================================
|
||||
# Check domain/path availability
|
||||
#=================================================
|
||||
|
@ -49,15 +37,6 @@ ynh_webpath_register $app $domain $path_url
|
|||
yunohost app checkurl "${domain}${path_url}" -a "$app" \
|
||||
|| ynh_die "Path not available: ${domain}${path_url}"
|
||||
|
||||
#=================================================
|
||||
# Check port availability
|
||||
#=================================================
|
||||
|
||||
yunohost app checkport $port
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
ynh_die "Port not available: ${port}"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# Check the admin exists in YunoHost users
|
||||
#=================================================
|
||||
|
@ -65,10 +44,16 @@ fi
|
|||
ynh_user_exists $admin
|
||||
|
||||
#=================================================
|
||||
# Open port on firewall
|
||||
# Check port availability
|
||||
#=================================================
|
||||
|
||||
yunohost firewall allow TCP $port > /dev/null 2>&1
|
||||
yunohost app checkport $port
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
ynh_die "Port not available: ${port}"
|
||||
else
|
||||
yunohost firewall allow TCP $port > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
|
||||
#=================================================
|
||||
# Get CPU architecture and check it
|
||||
|
|
Loading…
Add table
Reference in a new issue