Update startup.sh

This commit is contained in:
solomoncyj 2022-04-24 08:57:20 +08:00 committed by GitHub
parent ec439e237e
commit a3ce383b4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -5,11 +5,7 @@
# @brief This script will ask users about their prefrences like disk, file system, timezone, keyboard layout, user name, password, etc. # @brief This script will ask users about their prefrences like disk, file system, timezone, keyboard layout, user name, password, etc.
# @stdout Output routed to startup.log # @stdout Output routed to startup.log
# @stderror Output routed to startup.log # @stderror Output routed to startup.log
# @testing if script was run as root for full os run
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# @setting-header General Settings # @setting-header General Settings
# @setting CONFIG_FILE string[$CONFIGS_DIR/setup.conf] Location of setup.conf to be used by set_option and all subsequent scripts. # @setting CONFIG_FILE string[$CONFIGS_DIR/setup.conf] Location of setup.conf to be used by set_option and all subsequent scripts.
CONFIG_FILE=$CONFIGS_DIR/setup.conf CONFIG_FILE=$CONFIGS_DIR/setup.conf