We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3aa6d21 + aa525d2 commit 868dcd0Copy full SHA for 868dcd0
.goreleaser.yaml
@@ -105,6 +105,7 @@ nfpms:
105
- tedge-container-plugin
106
107
scripts:
108
+ preinstall: ./packaging/scripts/pre-install
109
preremove: ./packaging/scripts/pre-remove
110
postinstall: ./packaging/scripts/post-install
111
postremove: ./packaging/scripts/post-remove
packaging/scripts/pre-install
@@ -0,0 +1,12 @@
1
+#!/bin/sh
2
+set -e
3
+
4
+echo "Running pre-install: $*"
5
6
+# remove old symlink which will be replaced by a normal file during installation
7
+if [ -L /etc/init.d/tedge-container-plugin ]; then
8
+ rm -f /etc/init.d/tedge-container-plugin
9
+fi
10
+if [ -L /etc/conf.d/tedge-container-plugin ]; then
11
+ rm -f /etc/conf.d/tedge-container-plugin
12
0 commit comments