Upgrade nextcloud steps added to sequence
This commit is contained in:
3
seqs/nextcloud.cfg.example
Normal file
3
seqs/nextcloud.cfg.example
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Configuration file for nextcloud sequence
|
||||||
|
|
||||||
|
NC_INSTALL_DIR="/var/www/nextcloud"
|
@@ -3,9 +3,34 @@
|
|||||||
# Dependency to other seqs
|
# Dependency to other seqs
|
||||||
# - mysql.sh (soft; Missing informational output)
|
# - mysql.sh (soft; Missing informational output)
|
||||||
|
|
||||||
|
toolName="nextcloud"
|
||||||
|
|
||||||
# Get script working directory
|
# Get script working directory
|
||||||
# (when called from a different directory)
|
# (when called from a different directory)
|
||||||
WDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )"
|
WDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )"
|
||||||
|
CONFIG=0
|
||||||
|
CONFIG_FILE_NAME="${toolName}.cfg"
|
||||||
|
CONFIG_FILE_TEMPLATE="$WDIR/${CONFIG_FILE_NAME}.example"
|
||||||
|
|
||||||
|
step_config() {
|
||||||
|
## or to use sequencer api:
|
||||||
|
initSeqConfig "$CONFIG_FILE_NAME" "$CONFIG_FILE_TEMPLATE"
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
CONFIG=1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
step_20_info() { echo "Upgrade $toolName on command line to latest version of selected release channel"; }
|
||||||
|
step_20_alias() { ALIAS="upgrade"; }
|
||||||
|
step_20() {
|
||||||
|
if [ $CONFIG -eq 0 ] ; then
|
||||||
|
echoerr " [E] No configuration found to determine installation directory"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
exe cd "$NC_INSTALL_DIR"
|
||||||
|
exe sudo -u www-data php "$ncInstaller"
|
||||||
|
}
|
||||||
|
ncInstaller="updater/updater.phar"
|
||||||
|
|
||||||
step_100_info() { echo "Delete IP from bruteforce table <NC TABLE> <IPV4 ADDRESS>"; }
|
step_100_info() { echo "Delete IP from bruteforce table <NC TABLE> <IPV4 ADDRESS>"; }
|
||||||
step_100() {
|
step_100() {
|
||||||
@@ -36,5 +61,5 @@ step_100() {
|
|||||||
endReturn -o $? "Error deleting ip $ip"
|
endReturn -o $? "Error deleting ip $ip"
|
||||||
}
|
}
|
||||||
|
|
||||||
VERSION_SEQREV=9
|
VERSION_SEQREV=10
|
||||||
. /usr/local/bin/sequencer.sh
|
. /usr/local/bin/sequencer.sh
|
||||||
|
Reference in New Issue
Block a user