mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
Fix
This commit is contained in:
parent
acc30e0b00
commit
c5c4f333c7
3 changed files with 12 additions and 10 deletions
|
@ -1,18 +1,20 @@
|
|||
[Unit]
|
||||
Description=AdGuardHome DNS
|
||||
#ConditionFileIsExecutable=/etc/AdGuardHome/AduGuardHome
|
||||
Description=AdGuard Home: Network-level blocker
|
||||
ConditionFileIsExecutable=__FINALPATH__/AdGuardHome
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
StartLimitInterval=5
|
||||
StartLimitBurst=10
|
||||
ExecStart=__FINALPATH__/AdGuardHome "-s" "run" -c __FINALPATH__/AdGuardHome.yaml -p __PORT__
|
||||
WorkingDirectory=__FINALPATH__
|
||||
ExecStart=__FINALPATH__/AdGuardHome -c __FINALPATH__/AdGuardHome.yaml -p __PORT__
|
||||
|
||||
#Restart=always
|
||||
#RestartSec=120
|
||||
#EnvironmentFile=-/etc/sysconfig/dnscrypt-proxy
|
||||
#StandardOutput=file:/var/log/__APP__.out
|
||||
#StandardError=file:/var/log/__APP__.err
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
#EnvironmentFile=-/etc/sysconfig/AdGuardHome
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -3,4 +3,4 @@ SOURCE_SUM=a89332993c66a0f94886e243eb3141596c33cfe085c7ef7e30ead1885b40e086
|
|||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=false
|
||||
SOURCE_FILENAME=
|
||||
SOURCE_FILENAME=adguardhome
|
||||
|
|
|
@ -113,8 +113,8 @@ chown -R $app "$final_path/AdGuardHome.yaml"
|
|||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||
|
||||
# Create a dedicated systemd config
|
||||
#ynh_add_systemd_config
|
||||
$final_path/AdGuardHome --service install -c $final_path/AdGuardHome.yaml -p $port
|
||||
ynh_add_systemd_config
|
||||
#$final_path/AdGuardHome --service install -c $final_path/AdGuardHome.yaml -p $port
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
Loading…
Add table
Reference in a new issue