1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunorunner_ynh.git synced 2024-09-03 20:36:13 +02:00

fix needs exposed ports

This commit is contained in:
Salamandar 2024-03-15 13:30:40 +01:00
parent a7b6a5b946
commit a2851e14a3
4 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ setup_lxd() {
exposed_ports_if_cluster() {
if [ "$cluster" -eq 1 ]; then
echo "8443"
echo "--needs_exposed_ports=8443"
fi
}

View file

@ -83,7 +83,7 @@ ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
yunohost service add "$app" --description="$app daemon for YunoRunner" --needs_exposed_ports="$(exposed_ports_if_cluster)"
yunohost service add "$app" --description="$app daemon for YunoRunner" "$(exposed_ports_if_cluster)"
ynh_add_config --template="cron" --destination="/etc/cron.d/$app"

View file

@ -54,7 +54,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable "$app.service" --quiet
yunohost service add "$app" --description="$app daemon for YunoRunner" --needs_exposed_ports="$(exposed_ports_if_cluster)"
yunohost service add "$app" --description="$app daemon for YunoRunner" "$(exposed_ports_if_cluster)"
ynh_restore_file --origin_path="/etc/cron.d/$app"

View file

@ -108,7 +108,7 @@ ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
yunohost service add "$app" --description="$app daemon for YunoRunner" --needs_exposed_ports="$(exposed_ports_if_cluster)"
yunohost service add "$app" --description="$app daemon for YunoRunner" "$(exposed_ports_if_cluster)"
ynh_add_config --template="cron" --destination="/etc/cron.d/$app"