mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
06b5639986
commit
40bf6add75
4 files changed
+13
-11
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user