refactoring changes from sequpgrade (endReturn, ...) and some modernizations
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user