1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-25 03:49:06 +01:00

Reorganized stage1 init

This commit is contained in:
Lukas Macura 2016-04-24 04:59:23 +02:00
parent b18919362a
commit f5b88cc4d9

View File

@ -282,7 +282,14 @@ zaf_postconfigure() {
############ First stage Init ############ First stage Init
if ! [ -f README.md ]; then if ! [ -f README.md ]; then
# We are runing from stdin # Hardcoded variables
ZAF_VERSION="1.2"
ZAF_GITBRANCH="1.2"
ZAF_URL="https://github.com/limosek/zaf"
ZAF_RAW_URL="https://raw.githubusercontent.com/limosek/zaf"
export ZAF_TMP_DIR="/tmp/zaf-installer"
export ZAF_DIR="$ZAF_TMP_DIR/zaf"
mkdir -p $ZAF_TMP_DIR
if ! which curl >/dev/null; if ! which curl >/dev/null;
then then
zaf_err "Curl not found. Cannot continue. Please install it." zaf_err "Curl not found. Cannot continue. Please install it."
@ -315,13 +322,11 @@ fi
if [ -f "${ZAF_CFG_FILE}" ]; then if [ -f "${ZAF_CFG_FILE}" ]; then
. "${ZAF_CFG_FILE}" . "${ZAF_CFG_FILE}"
fi fi
export ZAF_TMP_DIR="/tmp/zaf-installer"
export ZAF_DIR="$ZAF_TMP_DIR/zaf"
zaf_debug_init stderr zaf_debug_init stderr
ZAF_TMP_DIR="/tmp/zaf-installer"
ZAF_DIR="$ZAF_TMP_DIR/zaf"
zaf_tmp_init zaf_tmp_init
zaf_cache_init zaf_cache_init
# Read options as config for ZAF # Read options as config for ZAF