Tell systemctl to stfu about creating symlinks when enabling/disabling services

This commit is contained in:
Alexandre Aubin 2020-05-23 13:52:08 +02:00
parent cc9b8e6e16
commit 6637c8a84d
2 changed files with 3 additions and 3 deletions

View file

@ -295,7 +295,7 @@ ynh_psql_test_if_first_run() {
# postgresql could be flagged as active even though the cluster is in
# failed state because of how the service is configured..)
systemctl is-active postgresql@$PSQL_VERSION-main -q || ynh_systemd_action --service_name=postgresql --action=restart
systemctl is-enabled postgresql -q || systemctl enable postgresql
systemctl is-enabled postgresql -q || systemctl enable postgresql --quiet
# If this is the very first time, we define the root password
# and configure a few things

View file

@ -58,7 +58,7 @@ ynh_add_systemd_config () {
ynh_store_file_checksum --file="$finalsystemdconf"
chown root: "$finalsystemdconf"
systemctl enable $service
systemctl enable $service --quiet
systemctl daemon-reload
}
@ -81,7 +81,7 @@ ynh_remove_systemd_config () {
if [ -e "$finalsystemdconf" ]
then
ynh_systemd_action --service_name=$service --action=stop
systemctl disable $service
systemctl disable $service --quiet
ynh_secure_remove --file="$finalsystemdconf"
systemctl daemon-reload
fi