Used sequpgrade.sh to upgrade existing seqs
This commit is contained in:
@@ -16,7 +16,7 @@ CONFIG_FILE_NAME="${SCRIPT_NAME}.cfg"
|
||||
CONFIG_FILE_TEMPLATE="$WDIR/${CONFIG_FILE_NAME}.example"
|
||||
CONFIG_DIR="$WDIR/$SCRIPT_NAME"
|
||||
|
||||
step_config() {
|
||||
seq_config() {
|
||||
#echo "Called once before executing steps."
|
||||
## e.g. to source a config file manually:
|
||||
#. "$CONFIG_FILE"
|
||||
@@ -28,14 +28,14 @@ step_config() {
|
||||
# CONFIG=1
|
||||
#else
|
||||
# # End if no configuration file exists
|
||||
# [ $DRY -eq 0 ] && return -1
|
||||
# dry || return -1
|
||||
#fi
|
||||
[ $QUIET -ne 0 ] && APTOPT="-y"
|
||||
quiet && APTOPT="-y"
|
||||
return 0
|
||||
}
|
||||
|
||||
step_1_info() { echo "Install $toolName"; }
|
||||
step_1_alias() { ALIAS="install"; }
|
||||
step_1_alias() { echo "install"; }
|
||||
step_1() {
|
||||
exe apt update
|
||||
exe apt install $toolDeps $APTOPT
|
||||
@@ -45,15 +45,15 @@ step_2_info() { echo "Install customized helper scripts to $toolUserScriptsLoc";
|
||||
step_2() {
|
||||
exep "mkdir \"$toolUserScriptsLoc\" 2>>/dev/null"
|
||||
[ $? -ne 0 ] && \
|
||||
echoseq " [W] $toolUserScriptsLoc already exists. Not overwriting existing files."
|
||||
warning "$toolUserScriptsLoc already exists. Not overwriting existing files."
|
||||
exe cp -n "$CONFIG_DIR"/* "$toolUserScriptsLoc"
|
||||
}
|
||||
|
||||
step_10_info() { echo "Open openvpn system start configuration"; }
|
||||
step_10_alias() { ALIAS="default"; }
|
||||
step_10_alias() { echo "default"; }
|
||||
step_10() {
|
||||
exe vi "$toolDefaultConf"
|
||||
}
|
||||
|
||||
VERSION_SEQREV=12
|
||||
readonly sqr_minVersion=16
|
||||
. /usr/local/bin/sequencer.sh
|
||||
|
||||
Reference in New Issue
Block a user