refactoring changes from sequpgrade (endReturn, ...) and some modernizations

This commit is contained in:
2023-01-03 15:49:08 +01:00
parent 215135e8aa
commit 3c22d5729f
69 changed files with 553 additions and 654 deletions

View File

@@ -25,7 +25,7 @@ seq_config() {
return 0
}
step_1_info() {
step_1_info() {
echo "Install $toolName"
echoinfo "Default port: 5050"
}
@@ -34,7 +34,7 @@ step_1() {
exe apt update
exe apt install $toolDeps $APTOPT
exe pip install --upgrade pyopenssl
endReturn -o $? "Pip install pyopenssl failed"
endReturn "Pip install pyopenssl failed"
}
step_2_info() { echo "Clone git repository"; }
@@ -51,7 +51,7 @@ step_3() {
step_4_info() { echo "Create systemd service"; }
step_4() {
exe cp "$CPO_INSTALL_DIR/init/couchpotato.service" "/etc/systemd/system"
endReturn -o $? "Creating service file failed"
endReturn "Creating service file failed"
exe systemctl daemon-reload
}