Skip to content

Commit

Permalink
Merge addition #1 (#2)
Browse files Browse the repository at this point in the history
* Added #1

Signed-off-by: ojullien <ojullien@users.noreply.github.com>

* v3.3.0

Signed-off-by: ojullien <ojullien@users.noreply.github.com>
  • Loading branch information
ojullien committed Feb 13, 2020
1 parent c9d8e11 commit a447232
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
3 changes: 1 addition & 2 deletions src/app/updatesystem/VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
v3.2
20190701
v3.3.0-20200213
23 changes: 0 additions & 23 deletions src/bin/updatesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ readonly m_DIR_REALPATH="$(realpath "$(dirname "$0")")"
. "${m_DIR_SYS}/config.sh"
# shellcheck source=/dev/null
. "${m_DIR_SYS}/package.sh"
# shellcheck source=/dev/null
. "${m_DIR_SYS}/service.sh"
Config::load "manageservices"
Config::load "updatesystem"
# shellcheck source=/dev/null
. "${m_DIR_APP}/updatesystem/app.sh"
Expand All @@ -52,7 +49,6 @@ Config::load "updatesystem"
## Trace
## -----------------------------------------------------------------------------
Constant::trace
ManageServices::trace
UpdateSystem::trace

## -----------------------------------------------------------------------------
Expand All @@ -63,15 +59,6 @@ String::notice "Today is: $(date -R)"
String::notice "The PID for $(basename "$0") process is: $$"
Console::waitUser

## -----------------------------------------------------------------------------
## Disable & stop services
## -----------------------------------------------------------------------------
String::separateLine
Service::disableServices ${m_SERVICES_DISABLE}
String::separateLine
Service::stopServices ${m_SERVICES_STOP}
Console::waitUser

## -----------------------------------------------------------------------------
## Update and upgrade
## -----------------------------------------------------------------------------
Expand Down Expand Up @@ -118,16 +105,6 @@ String::separateLine
UpdateSystem::updateDB
Console::waitUser

## -----------------------------------------------------------------------------
## Start services
## -----------------------------------------------------------------------------
UpdateSystem::finish() {
String::separateLine
Service::startServices ${m_SERVICES_START}
String::notice "Now is: $(date -R)"
}
trap UpdateSystem::finish EXIT SIGQUIT SIGTERM SIGINT ERR

## -----------------------------------------------------------------------------
## END
## -----------------------------------------------------------------------------
Expand Down

0 comments on commit a447232

Please sign in to comment.