Skip to content

Commit

Permalink
Merge pull request #613 from maticnetwork/djpolygon/v0.3.1-mumbai-update
Browse files Browse the repository at this point in the history
Adding of 0.3.0 package changes, control file updates, postinst chang…
  • Loading branch information
djpolygon authored Dec 4, 2022
2 parents 742990c + dab3161 commit 5d6ffa7
Show file tree
Hide file tree
Showing 9 changed files with 649 additions and 220 deletions.
839 changes: 629 additions & 210 deletions .github/workflows/packager.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packaging/templates/package_scripts/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: bor
Version: 0.3.0
Version: 0.3.1
Section: develop
Priority: standard
Maintainer: Polygon <release-team@polygon.technology>
Expand Down
2 changes: 1 addition & 1 deletion packaging/templates/package_scripts/control.arm64
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: bor
Version: 0.3.0
Version: 0.3.1
Section: develop
Priority: standard
Maintainer: Polygon <release-team@polygon.technology>
Expand Down
2 changes: 1 addition & 1 deletion packaging/templates/package_scripts/control.profile.amd64
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: bor-profile
Version: 0.3.0
Version: 0.3.1
Section: develop
Priority: standard
Maintainer: Polygon <release-team@polygon.technology>
Expand Down
2 changes: 1 addition & 1 deletion packaging/templates/package_scripts/control.profile.arm64
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: bor-profile
Version: 0.3.0
Version: 0.3.1
Section: develop
Priority: standard
Maintainer: Polygon <release-team@polygon.technology>
Expand Down
2 changes: 1 addition & 1 deletion packaging/templates/package_scripts/control.validator
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: bor-profile
Version: 0.3.0
Version: 0.3.1
Section: develop
Priority: standard
Maintainer: Polygon <release-team@polygon.technology>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: bor-profile
Version: 0.3.0
Version: 0.3.1
Section: develop
Priority: standard
Maintainer: Polygon <release-team@polygon.technology>
Expand Down
9 changes: 7 additions & 2 deletions packaging/templates/package_scripts/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# This is a postinstallation script so the service can be configured and started when requested
#
sudo adduser --disabled-password --disabled-login --shell /usr/sbin/nologin --quiet --system --no-create-home --home /nonexistent bor
sudo mkdir -p /var/lib/bor
sudo chown -R bor /var/lib/bor
if [ -d "/var/lib/bor" ]
then
echo "Directory /var/lib/bor exists."
else
mkdir -p /var/lib/bor
sudo chown -R bor /var/lib/bor
fi
sudo systemctl daemon-reload
9 changes: 7 additions & 2 deletions packaging/templates/package_scripts/postinst.profile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash
# This is a postinstallation script so the service can be configured and started when requested
#
sudo mkdir -p /var/lib/bor
sudo chown -R bor /var/lib/bor
if [ -d "/var/lib/bor" ]
then
echo "Directory /var/lib/bor exists."
else
mkdir -p /var/lib/bor
sudo chown -R bor /var/lib/bor
fi
sudo systemctl daemon-reload

0 comments on commit 5d6ffa7

Please sign in to comment.