mirror of
https://github.com/YunoHost-Apps/zeronet_ynh.git
synced 2024-09-03 17:46:12 +02:00
added port and domain replacement in systemd
This commit is contained in:
parent
d3d02b8f2c
commit
1bb8879997
3 changed files with 3 additions and 3 deletions
|
@ -190,7 +190,7 @@ ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
### - Remove the section "REMOVE SERVICE INTEGRATION IN YUNOHOST" in the remove script
|
### - Remove the section "REMOVE SERVICE INTEGRATION IN YUNOHOST" in the remove script
|
||||||
### - As well as the section "INTEGRATE SERVICE IN YUNOHOST" in the restore script
|
### - As well as the section "INTEGRATE SERVICE IN YUNOHOST" in the restore script
|
||||||
### - And the section "INTEGRATE SERVICE IN YUNOHOST" in the upgrade script
|
### - And the section "INTEGRATE SERVICE IN YUNOHOST" in the upgrade script
|
||||||
ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port datadir"
|
ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port port domain datadir"
|
||||||
|
|
||||||
yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port"
|
yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port"
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ systemctl enable $app.service
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port datadir"
|
ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port port domain datadir"
|
||||||
yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port"
|
yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -140,7 +140,7 @@ chown -R $app: $datadir
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port datadir"
|
ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="fs_port port domain datadir"
|
||||||
yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port"
|
yunohost service add $app --description "$app service" --log "$datadir/log/debug-last.log" --needs_exposed_ports "$fs_port"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue