aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@awy.one>2024-11-05 03:53:55 +0300
committerawy <awy@awy.one>2024-11-05 03:53:55 +0300
commit5755e86260015a1a46c142cb51848e9531665191 (patch)
treea0f1359769c024b891b462f9fe15904dacd6f141
parent86f0c04dba6406550bb09d5a349e05b728bb1708 (diff)
define username
-rwxr-xr-xrice.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rice.sh b/rice.sh
index a4ed45a..f66aab6 100755
--- a/rice.sh
+++ b/rice.sh
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
WORKDIRECTORY=$PWD
-PERMUSER="awy"
+PERMUSER=$(logname)
if [ "$(id -u)" -ne 0 ]
then printf "The script has to be run as root.\n"