Introduce versioning to sequencer and seqs

Refactored sequencer option handling

More robust way to include sequencer.sh to seqs
This commit is contained in:
2019-04-05 15:32:53 +01:00
parent 09f082a83f
commit baef4e8d56
4 changed files with 87 additions and 27 deletions

View File

@@ -112,5 +112,11 @@ step_20() {
chmod 644 /etc/gitea/app.ini
}
# Sequence Revision
VERSION_SEQREV=1
# Workaround when called from different directory
# Not needed when path to sequencer is absolut
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )"
# Path to sequencer
. ../sequencer/sequencer.sh
. ${DIR}/../sequencer/sequencer.sh

View File

@@ -132,5 +132,11 @@ step_42() {
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
}
# Sequence Revision
VERSION_SEQREV=1
# Workaround when called from different directory
# Not needed when path to sequencer is absolut
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )"
# Path to sequencer
. ../sequencer/sequencer.sh
. ${DIR}/../sequencer/sequencer.sh