Commit bfb1aa7f authored by Bastian Blank's avatar Bastian Blank Committed by Joerg Jaspert

Declare all variables in global scope

parent 817cfb61
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
# Checking for DB updates, only really done on some hosts # Checking for DB updates, only really done on some hosts
case ${HOSTNAME} in case ${HOSTNAME} in
fasolo|seger) fasolo|seger)
declare -r NEEDDB="yes, we need to check for DB updates" declare -gr NEEDDB="yes, we need to check for DB updates"
;; ;;
*) *)
declare -r NEEDDB="" declare -gr NEEDDB=""
esac esac
# Whats the last db update revision before update # Whats the last db update revision before update
OLDDBVER=0 OLDDBVER=0
...@@ -14,16 +14,16 @@ OLDDBVER=0 ...@@ -14,16 +14,16 @@ OLDDBVER=0
NEWDBVER=0 NEWDBVER=0
# Where is our code # Where is our code
declare -r GITURL="https://salsa.debian.org/ftp-team/dak.git" declare -gr GITURL="https://salsa.debian.org/ftp-team/dak.git"
# Where to send error log messages to # Where to send error log messages to
declare -r MAILTO=${MAILTO:-"ftpmaster@debian.org"} declare -gr MAILTO=${MAILTO:-"ftpmaster@debian.org"}
# Store at which DB update we are in live system # Store at which DB update we are in live system
if [[ -n ${NEEDDB} ]]; then if [[ -n ${NEEDDB} ]]; then
OLDDBVER=$(ls -1 ${masterdir}/dak/dakdb/update*py|sort -V|tail -n 1) OLDDBVER=$(ls -1 ${masterdir}/dak/dakdb/update*py|sort -V|tail -n 1)
OLDDBVER=${OLDDBVER##*update} OLDDBVER=${OLDDBVER##*update}
declare -r OLDDBVER=${OLDDBVER%%.py} declare -gr OLDDBVER=${OLDDBVER%%.py}
fi fi
# GPG options for verifying stuff # GPG options for verifying stuff
...@@ -31,7 +31,7 @@ DEFGPGOPT="--no-default-keyring --batch --no-tty --no-options --exit-on-status-w ...@@ -31,7 +31,7 @@ DEFGPGOPT="--no-default-keyring --batch --no-tty --no-options --exit-on-status-w
# Which key is allowed to sign commits for a deploy # Which key is allowed to sign commits for a deploy
# Only keys count, values are just for fun. # Only keys count, values are just for fun.
declare -A DEPLOY_KEYS=( declare -gA DEPLOY_KEYS=(
["309911BEA966D0613053045711B4E5FF15B0FD82"]="mhy" ["309911BEA966D0613053045711B4E5FF15B0FD82"]="mhy"
["80E976F14A508A48E9CA3FE9BC372252CA1CF964"]="ansgar" ["80E976F14A508A48E9CA3FE9BC372252CA1CF964"]="ansgar"
["FBFABDB541B5DC955BD9BA6EDB16CF5BB12525C4"]="joerg" ["FBFABDB541B5DC955BD9BA6EDB16CF5BB12525C4"]="joerg"
......
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