[deb] can not remove local repo

[deb] improve deb scripts

[deb] restart harmony after upgrade

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3313/head
Leo Chen 4 years ago
parent ca635bfedc
commit 419967d274
  1. 6
      scripts/package/deb/DEBIAN/postinst
  2. 8
      scripts/package/deb/DEBIAN/postrm
  3. 2
      scripts/package/deb/DEBIAN/prerm
  4. 1
      scripts/package/deb/changelog
  5. 2
      scripts/package/publish-repo.sh

@ -4,10 +4,14 @@ after_install() {
mkdir -p /home/harmony/.hmy/blskeys
mkdir -p /home/harmony/.config/rclone
chown -R harmony.harmony /home/harmony
systemctl enable harmony
systemctl start harmony
}
after_upgrade() {
:
systemctl enable harmony
systemctl restart harmony
}

@ -1,4 +1,7 @@
#!/bin/sh
set -e
after_remove() {
:
#rm -rf /data/harmony/latest
@ -7,7 +10,10 @@ after_remove() {
}
after_purge() {
:
systemctl disable harmony
userdel harmony || true
groupdel harmony || true
rm -rf /etc/harmony
}
dummy() {

@ -3,7 +3,7 @@
set -e
before_remove() {
:
systemctl stop harmony
}
dummy() {

@ -1 +1,2 @@
1.1 improved debian scripts
1.0 init harmony debian package

@ -77,8 +77,6 @@ function publish_deb() {
aptly repo add harmony-$PROFILE $SRC
aptly publish repo harmony-$PROFILE s3:harmony-$PROFILE:
fi
# remove the local repo
aptly repo drop harmony-$PROFILE
}
################## MAIN ##################

Loading…
Cancel
Save