Used sequpgrade.sh to upgrade existing seqs
This commit is contained in:
@@ -18,7 +18,7 @@ CONFIG=0
|
||||
#CONFIG_FILE_NAME="${toolName}.cfg"
|
||||
#CONFIG_FILE_TEMPLATE="$WDIR/${CONFIG_FILE_NAME}.example"
|
||||
|
||||
step_config() {
|
||||
seq_config() {
|
||||
## e.g. to source a config file manually:
|
||||
#. "$CONFIG_FILE"
|
||||
## or to use sequencer api:
|
||||
@@ -27,7 +27,7 @@ step_config() {
|
||||
# CONFIG=1
|
||||
#fi
|
||||
if [ "$(which lsb_release)" == "" ] ; then
|
||||
echoerr " [W] Cannot detect OS. Assuming Ubuntu"
|
||||
warning -e "Cannot detect OS. Assuming Ubuntu"
|
||||
SEQ_OSNAME="Ubuntu"
|
||||
else
|
||||
SEQ_OSNAME=$(lsb_release -is)
|
||||
@@ -35,7 +35,7 @@ step_config() {
|
||||
fi
|
||||
|
||||
if [ "$SEQ_OSNAME" == "" ] ; then
|
||||
echoerr " [W] Error dedecting OS. Assuming Ubuntu"
|
||||
warning -e "Error dedecting OS. Assuming Ubuntu"
|
||||
SEQ_OSNAME="Ubuntu"
|
||||
fi
|
||||
|
||||
@@ -43,20 +43,20 @@ step_config() {
|
||||
}
|
||||
|
||||
step_1_info() { echo "Install $toolName dependencies"; }
|
||||
step_1_alias() { ALIAS="install"; }
|
||||
step_1_alias() { echo "install"; }
|
||||
step_1() {
|
||||
local aptOption=
|
||||
|
||||
local pyVersion=$(python -V 2>&1)
|
||||
if [[ ! "$pyVersion" =~ \ 2\.[7-9]+ ]] ; then
|
||||
echoerr " [E] Motioneye requires python version 2.7 but $pyVersion was found."
|
||||
error -e "Motioneye requires python version 2.7 but $pyVersion was found."
|
||||
return 1
|
||||
fi
|
||||
|
||||
exe apt update
|
||||
endReturn -o $? "Updating apt repositories failed"
|
||||
|
||||
if [ $QUIET -ne 0 ] ; then
|
||||
if quiet ; then
|
||||
aptOption="-y"
|
||||
else
|
||||
aptOption=""
|
||||
@@ -96,7 +96,7 @@ step_3() {
|
||||
}
|
||||
|
||||
step_4_info() { echo "Upgrade python pip"; }
|
||||
step_4_alias() { ALIAS="upgradepip"; }
|
||||
step_4_alias() { echo "upgradepip"; }
|
||||
step_4()
|
||||
{
|
||||
exe pip install --upgrade pip
|
||||
@@ -138,7 +138,7 @@ motioneyeServiceSource="/usr/local/share/motioneye/extra/motioneye.systemd-unit-
|
||||
motioneyeServiceTarget="/etc/systemd/system/motioneye.service"
|
||||
|
||||
step_20_info() { echo "Upgrade $toolName"; }
|
||||
step_20_alias() { ALIAS="upgrade"; }
|
||||
step_20_alias() { echo "upgrade"; }
|
||||
step_20() {
|
||||
step "upgradepip"
|
||||
exe pip install motioneye --upgrade
|
||||
@@ -146,5 +146,5 @@ step_20() {
|
||||
exe systemctl restart motioneye
|
||||
}
|
||||
|
||||
VERSION_SEQREV=11
|
||||
readonly sqr_minVersion=16
|
||||
. /usr/local/bin/sequencer.sh
|
||||
|
Reference in New Issue
Block a user