config: Use privileged decorator for set-hostname action

Tests:

- Running flake8 as in .gitlab-ci.yml works.
- Changes the hostname works and it is updated in /etc/hostname
  - Avahi daemon is restarted

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2022-10-08 18:51:33 -04:00
1 parent 06b5639986
commit 40bf6add75
4 files changed
+13 -11

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-or-later
hostname="$1"
hostnamectl set-hostname --transient --static "$hostname"
service avahi-daemon restart