check for root
This commit is contained in:
parent
ebc77e8137
commit
e495b65b24
18
.vscode/numbered-bookmarks.json
vendored
18
.vscode/numbered-bookmarks.json
vendored
@ -1,19 +1,3 @@
|
|||||||
{
|
{
|
||||||
"bookmarks": [
|
"bookmarks": []
|
||||||
{
|
|
||||||
"fsPath": "$ROOTPATH$/pilerBackup/pilerbackup.sh",
|
|
||||||
"bookmarks": [
|
|
||||||
-1,
|
|
||||||
328,
|
|
||||||
408,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
645
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
@ -322,6 +322,11 @@ done
|
|||||||
|
|
||||||
|
|
||||||
### check pre-requisites and default values
|
### check pre-requisites and default values
|
||||||
|
# check if running as root, otherwise exit
|
||||||
|
if [ $( id -u ) -ne 0 ]; then
|
||||||
|
printf "\n${err}ERROR: script MUST be run as ROOT${norm}\n\n"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
# find pilerexport, otherwise this is all pointless
|
# find pilerexport, otherwise this is all pointless
|
||||||
pilerExport=$( command -v pilerexport )
|
pilerExport=$( command -v pilerexport )
|
||||||
if [ ! "$pilerExport" ]; then
|
if [ ! "$pilerExport" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user