refactoring changes from sequpgrade (endReturn, ...) and some modernizations
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Dependency to other seqs
|
||||
# - mysql.sh (soft; Missing informational output)
|
||||
# - mysql.sh (soft; Missing informational output)
|
||||
|
||||
readonly toolName="nextcloud"
|
||||
localOcc=("echo" "occ not found!")
|
||||
@@ -31,7 +31,7 @@ step_20() {
|
||||
return 1
|
||||
fi
|
||||
exe cd "$sc_ncInstallDir"
|
||||
exe sudo -u www-data php "$ncInstaller"
|
||||
exe sudo -u www-data php "$ncInstaller"
|
||||
}
|
||||
ncInstaller="updater/updater.phar"
|
||||
|
||||
@@ -57,7 +57,7 @@ step_102() {
|
||||
if [ -z $1 ] ; then
|
||||
error -e "No database provided"
|
||||
if [ -f "${seq_origin}/mysql.sh" ] ; then
|
||||
echo " [I] Available mysql databases:"
|
||||
info "Available mysql databases:"
|
||||
"${seq_origin}/mysql.sh" -qq listdb
|
||||
fi
|
||||
return 1
|
||||
@@ -73,7 +73,7 @@ step_102() {
|
||||
fi
|
||||
|
||||
exe mysql -u root -D ${ncdb} -e 'delete FROM oc_bruteforce_attempts WHERE IP="'${ip}'";'
|
||||
endReturn -o $? "Error deleting ip $ip"
|
||||
endReturn "Error deleting ip $ip"
|
||||
}
|
||||
|
||||
step_104_info() { echo "Reset and rescan the music library in the background for one user"; }
|
||||
|
Reference in New Issue
Block a user