We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccb7e89 commit 9c74bccCopy full SHA for 9c74bcc
1 file changed
bin/v-open-fs-config
@@ -12,10 +12,10 @@ if [ -z "$src_file" ]; then
12
exit 1
13
fi
14
15
-# Checking hestia user
16
-if [ ! -d "$HESTIA/data/users/$user" ]; then
17
- echo "Error: hestia user $user doesn't exist"
18
- exit 3
+# Checking root permissions
+if [ "$(id -u)" != '0' ]; then
+ echo "Error: Script can be run executed only by root"
+ exit 10
19
20
21
# Checking file on fs
0 commit comments