Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
#25 Fixing issue that upgrade the deb package replace the config file…
Browse files Browse the repository at this point in the history
… used by user

Also removed logrotatefile
  • Loading branch information
blubbfish committed Jun 24, 2020
1 parent 3872b33 commit 3e0b7cb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ jobs:
MAINAINER: LinkSmart <info@linksmart.eu>
DESCRIPTION: WoT Thing Directory by LinkSmart
EXEARGUMENTS: --conf /etc/thing-directory/settings.json --schema /etc/thing-directory/wot_td_schema.json
COPYCONFIG: ../conf/settings.json.example ../conf/wot_td_schema.json
COPYCONFIG: ../conf/settings.json.dpkg-new ../conf/wot_td_schema.json.dpkg-new
CONFIGREPLACEASK: settings.json wot_td_schema.json
BUILDNUMBER: ${{github.run_number}}
DATADIR: /var/lib/thing-directory
ENVIROMENTVARS: DISABLE_LOG_TIME=true
Expand All @@ -96,7 +97,8 @@ jobs:
if: success()
run: |
mkdir Builds
echo "jq '.storage.dsn = \"$DATADIR\"' conf/thing-directory.json > conf/settings.json.example" | bash
echo "jq '.storage.dsn = \"$DATADIR\"' conf/thing-directory.json > conf/settings.json.dpkg-new" | bash
cp conf/wot_td_schema.json conf/wot_td_schema.json.dpkg-new
- name: Create DEB for Debian amd64
id: deb-linux-amd64
Expand All @@ -107,7 +109,6 @@ jobs:
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/control-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/pre-post-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/service-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/logrotate-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/build-deb.sh | bash
cd ..
rm -r dpkg
Expand All @@ -126,7 +127,6 @@ jobs:
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/control-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/pre-post-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/service-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/logrotate-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/build-deb.sh | bash
cd ..
rm -r dpkg
Expand All @@ -145,7 +145,6 @@ jobs:
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/control-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/pre-post-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/service-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/logrotate-build.sh | bash
curl -s https://raw.githubusercontent.com/linksmart/ci-scripts/master/deb/build-deb.sh | bash
cd ..
rm -r dpkg
Expand Down

0 comments on commit 3e0b7cb

Please sign in to comment.