mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
regenconf: make some systemctl enable/disable quiet
This commit is contained in:
parent
3a85b5201a
commit
bccff1b442
2 changed files with 5 additions and 5 deletions
|
@ -62,7 +62,7 @@ do_init_regen() {
|
|||
|
||||
systemctl daemon-reload
|
||||
|
||||
systemctl enable yunohost-api.service
|
||||
systemctl enable yunohost-api.service --quiet
|
||||
systemctl start yunohost-api.service
|
||||
# Yunohost-firewall is enabled only during postinstall, not init, not 100% sure why
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ _generate_config() {
|
|||
do_init_regen() {
|
||||
do_pre_regen
|
||||
do_post_regen /etc/systemd/system/yunomdns.service
|
||||
systemctl enable yunomdns
|
||||
systemctl enable yunomdns --quiet
|
||||
}
|
||||
|
||||
do_pre_regen() {
|
||||
|
@ -53,12 +53,12 @@ do_post_regen() {
|
|||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
systemctl disable avahi-daemon.socket --now 2>&1|| true
|
||||
systemctl disable avahi-daemon --now 2>&1 || true
|
||||
systemctl disable avahi-daemon.socket --quiet --now 2>&1 || true
|
||||
systemctl disable avahi-daemon --quiet --now 2>&1 || true
|
||||
|
||||
# Legacy stuff to enable the new yunomdns service on legacy systems
|
||||
if [[ -e /etc/avahi/avahi-daemon.conf ]] && grep -q 'yunohost' /etc/avahi/avahi-daemon.conf; then
|
||||
systemctl enable yunomdns --now
|
||||
systemctl enable yunomdns --now --quiet
|
||||
sleep 2
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue