refactoring changes from sequpgrade (endReturn, ...) and some modernizations
This commit is contained in:
@@ -16,7 +16,7 @@ seq_config() {
|
||||
fi
|
||||
|
||||
interactive || sq_aptOpt="-y"
|
||||
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ step_2() {
|
||||
exe rm -rf unrar-*
|
||||
}
|
||||
|
||||
step_3_info() {
|
||||
step_3_info() {
|
||||
echo "Install dependencies"
|
||||
echoinfo " [TARGET] (default: raspi)"
|
||||
echoinfo " raspi: Raspberry Pi OS"
|
||||
@@ -52,7 +52,7 @@ step_3_alias() { echo "deps"; }
|
||||
step_3() {
|
||||
shift
|
||||
local lDeps="$toolDeps"
|
||||
case "${1:-}" in
|
||||
case "${1:-}" in
|
||||
debian)
|
||||
lDeps="$toolDepsDebian";;
|
||||
raspi);;
|
||||
@@ -76,7 +76,7 @@ step_3() {
|
||||
step_4_info() { echo "Get $toolName from $toolDownload and create dedicated user"; }
|
||||
step_4() {
|
||||
exe git clone -b $toolBranch $toolDownload "$PYL_INSTALL_DIR"
|
||||
endReturn -o $? "Git clone failed"
|
||||
endReturn "Git clone failed"
|
||||
exe adduser --system --home "$PYL_CONFIG_DIR" "$PYL_USER"
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ step_10() {
|
||||
exe service $toolName stop
|
||||
exe cd "$PYL_INSTALL_DIR"
|
||||
exe git pull
|
||||
echo " [I] Service is not started automatically"
|
||||
info "Service is not started automatically"
|
||||
echo " Do so manually with: service $toolName start"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user