Commit cf0a74e3 authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent 8cc4e222
#!/usr/bin/env bash #!/usr/bin/env bash
# shellcheck disable=SC2086 # shellcheck disable=SC2086
if [[ "$(id -u)" != "0" ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo "================================" echo "================================"
echo "<===== Run apply-update.sh ====>" echo "<===== Run apply-update.sh ====>"
echo "================================" echo "================================"
...@@ -30,11 +36,6 @@ success() { ...@@ -30,11 +36,6 @@ success() {
echo -e "\e[32m[Success] \e[32m $1 \e[39m $(for i in {12..21} ; do echo -en "\e[32;1;${i}m.\e[0m" ; done ; echo)" echo -e "\e[32m[Success] \e[32m $1 \e[39m $(for i in {12..21} ; do echo -en "\e[32;1;${i}m.\e[0m" ; done ; echo)"
} }
if [[ "$(id -u)" != "0" ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
cd ${APPLICATION_ROOT_PATH} cd ${APPLICATION_ROOT_PATH}
mkdir -p ${STASH_DB_DIR} mkdir -p ${STASH_DB_DIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment