mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Rewrite plinth to use sudo and action scripts instead of exmachina for privileged accesss.
This commit is contained in:
1 parent
0954d9d383
commit
444365ec78
10 files changed
+52
-65
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
hostname="$1"
|
||||
|
||||
echo "$hostname" > /etc/hostname
|
||||
if [ -x /etc/init.d/hostname.sh ] ; then
|
||||
service hostname.sh start
|
||||
else
|
||||
service hostname start
|
||||
fi
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
zonename="$1"
|
||||
|
||||
tzpath="/usr/share/zoneinfo/$zonename"
|
||||
|
||||
if [ -e "$tzpath" ] ; then
|
||||
cp "$tzpath" /etc/localtime
|
||||
echo "$zonename" > /etc/timezone
|
||||
exit 0
|
||||
else
|
||||
echo "timezone not valid" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user