matterbridge - restart service after compilation
This commit is contained in:
@@ -185,6 +185,7 @@ whatsappmulti"
|
|||||||
exe "${goDir}/bin/go" install -tags ${mabrTags} github.com/42wim/matterbridge@master
|
exe "${goDir}/bin/go" install -tags ${mabrTags} github.com/42wim/matterbridge@master
|
||||||
step backup
|
step backup
|
||||||
exe cp -ar "${HOME}/go/bin/matterbridge" "${toolDir}"
|
exe cp -ar "${HOME}/go/bin/matterbridge" "${toolDir}"
|
||||||
|
exe service ${toolName} restart >>/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
step_32_info() { echo "Clean temporary files"; }
|
step_32_info() { echo "Clean temporary files"; }
|
||||||
|
33
sequencer.sh
33
sequencer.sh
@@ -381,7 +381,6 @@ USAGE_API
|
|||||||
sqr::log () {
|
sqr::log () {
|
||||||
sqr::debugPause
|
sqr::debugPause
|
||||||
local appendText=
|
local appendText=
|
||||||
local arg=
|
|
||||||
local col_end="${col_off}"
|
local col_end="${col_off}"
|
||||||
local outp='/dev/stdout'
|
local outp='/dev/stdout'
|
||||||
|
|
||||||
@@ -389,7 +388,7 @@ USAGE_API
|
|||||||
shift
|
shift
|
||||||
local log_color="${1:-}"
|
local log_color="${1:-}"
|
||||||
shift
|
shift
|
||||||
for arg in "${@}" ; do
|
for _ in "${@}" ; do
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
--)
|
--)
|
||||||
shift && break ;;
|
shift && break ;;
|
||||||
@@ -553,9 +552,8 @@ running() {
|
|||||||
# -f : a function
|
# -f : a function
|
||||||
exists() {
|
exists() {
|
||||||
local func=
|
local func=
|
||||||
local arg=
|
|
||||||
|
|
||||||
for arg in "$@" ; do
|
for _ in "$@" ; do
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
--)
|
--)
|
||||||
shift && break ;;
|
shift && break ;;
|
||||||
@@ -619,13 +617,12 @@ editor() {
|
|||||||
# -- : end of options
|
# -- : end of options
|
||||||
confirm() {
|
confirm() {
|
||||||
sqr::debugPause
|
sqr::debugPause
|
||||||
local arg=
|
|
||||||
local rexReply='^[Yy]+$' # default no
|
local rexReply='^[Yy]+$' # default no
|
||||||
local inputHelp='[y/N] ' # default no
|
local inputHelp='[y/N] ' # default no
|
||||||
local noHelp=0
|
local noHelp=0
|
||||||
local force=0
|
local force=0
|
||||||
|
|
||||||
for arg in "${@}" ; do
|
for _ in "${@}" ; do
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
--)
|
--)
|
||||||
shift && break ;;
|
shift && break ;;
|
||||||
@@ -668,9 +665,8 @@ ask() {
|
|||||||
sqr::debugPause
|
sqr::debugPause
|
||||||
local hidden=
|
local hidden=
|
||||||
local empty=0
|
local empty=0
|
||||||
local arg=
|
for _ in "$@" ; do
|
||||||
for arg in "$@" ; do
|
case "${1:-}" in
|
||||||
case "${1}" in
|
|
||||||
--)
|
--)
|
||||||
shift && break ;;
|
shift && break ;;
|
||||||
-e)
|
-e)
|
||||||
@@ -726,13 +722,12 @@ getReturn() {
|
|||||||
# [MESSAGE] : Custom error message
|
# [MESSAGE] : Custom error message
|
||||||
#
|
#
|
||||||
endReturn() {
|
endReturn() {
|
||||||
local arg
|
|
||||||
local forceExit=0
|
local forceExit=0
|
||||||
local errorCode=${_sqr_errno}
|
local errorCode=${_sqr_errno}
|
||||||
local endMessage=""
|
local endMessage=""
|
||||||
|
|
||||||
for arg in "$@" ; do
|
for _ in "$@" ; do
|
||||||
case "$1" in
|
case "${1:-}" in
|
||||||
-f)
|
-f)
|
||||||
forceExit=1
|
forceExit=1
|
||||||
shift
|
shift
|
||||||
@@ -813,11 +808,10 @@ endIfEmpty() {
|
|||||||
# if all fails, a log file is created with the conflicts to be resolved by the user
|
# if all fails, a log file is created with the conflicts to be resolved by the user
|
||||||
addConf() {
|
addConf() {
|
||||||
local addConfBackup=
|
local addConfBackup=
|
||||||
local arg
|
|
||||||
local confMode=""
|
local confMode=""
|
||||||
local transferCmd="echo"
|
local transferCmd="echo"
|
||||||
|
|
||||||
for arg in "$@" ; do
|
for _ in "$@" ; do
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
-c) # create a new file
|
-c) # create a new file
|
||||||
confMode="-c"
|
confMode="-c"
|
||||||
@@ -933,7 +927,7 @@ checkStep() {
|
|||||||
else
|
else
|
||||||
checkStep_ref=0
|
checkStep_ref=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Catch special character after evaluation
|
# Catch special character after evaluation
|
||||||
if ! [[ "${checkStep_ref}" =~ ${checkStep_rex} ]] ; then
|
if ! [[ "${checkStep_ref}" =~ ${checkStep_rex} ]] ; then
|
||||||
checkStep_ref=0
|
checkStep_ref=0
|
||||||
@@ -1168,7 +1162,6 @@ showVersion() {
|
|||||||
# 2 : Created empty configuration
|
# 2 : Created empty configuration
|
||||||
# 3 : No configuration created
|
# 3 : No configuration created
|
||||||
initSeqConfig() {
|
initSeqConfig() {
|
||||||
local arg
|
|
||||||
local answer=n
|
local answer=n
|
||||||
local retVal=255
|
local retVal=255
|
||||||
local sourceAlways=0
|
local sourceAlways=0
|
||||||
@@ -1176,8 +1169,8 @@ initSeqConfig() {
|
|||||||
local seqProfiles=0
|
local seqProfiles=0
|
||||||
local configExists=
|
local configExists=
|
||||||
local configDir=
|
local configDir=
|
||||||
for arg in "$@" ; do
|
for _ in "$@" ; do
|
||||||
case "$1" in
|
case "${1:-}" in
|
||||||
-e)
|
-e)
|
||||||
createEmpty=1
|
createEmpty=1
|
||||||
shift ;;
|
shift ;;
|
||||||
@@ -1448,7 +1441,7 @@ sqr::compatible() {
|
|||||||
# exclude older versions if needed
|
# exclude older versions if needed
|
||||||
if [ -n "${sqr_minVersion}" ] && [[ ${sqr_minVersion} -le 15 ]] ; then
|
if [ -n "${sqr_minVersion}" ] && [[ ${sqr_minVersion} -le 15 ]] ; then
|
||||||
error "Unsupported sequence revision (major changes in version 16)"
|
error "Unsupported sequence revision (major changes in version 16)"
|
||||||
error -a "(Use 'sequpgrade.sh $(readlink -f -- $0)' for a basic upgrade)"
|
error -a "(Use 'sequpgrade.sh $(readlink -f -- "$0")' for a basic upgrade)"
|
||||||
showVersion
|
showVersion
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -1469,7 +1462,7 @@ sqr::main() {
|
|||||||
local startAll=
|
local startAll=
|
||||||
|
|
||||||
# options check
|
# options check
|
||||||
for arg in "$@" ; do
|
for _ in "$@" ; do
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
++) # end parameter and quickstart step 1 with -qq
|
++) # end parameter and quickstart step 1 with -qq
|
||||||
quickStartOne=1
|
quickStartOne=1
|
||||||
|
Reference in New Issue
Block a user