aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpostfixadmin-dl25
1 files changed, 13 insertions, 12 deletions
diff --git a/postfixadmin-dl b/postfixadmin-dl
index d71eb96..502e59d 100755
--- a/postfixadmin-dl
+++ b/postfixadmin-dl
@@ -24,33 +24,34 @@ elif [ -d "postfixadmin-$VERSION" ]; then
fi
# Download package
-wget -c https://downloads.sourceforge.net/project/postfixadmin/postfixadmin-3.3.8/PostfixAdmin%20$VERSION.tar.gz \
- -O postfixadmin-$VERSION.tar.gz
+#wget -c https://downloads.sourceforge.net/project/postfixadmin/postfixadmin-$VERSION/PostfixAdmin%20$VERSION.tar.gz \
+# -O postfixadmin-$VERSION.tar.gz || exit 1
#wget -c http://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-$VERSION/postfixadmin-$VERSION.tar.gz
+wget -c https://github.com/postfixadmin/postfixadmin/archive/refs/tags/postfixadmin-$VERSION.tar.gz
# Download signature
+#wget -c https://downloads.sourceforge.net/project/postfixadmin/postfixadmin-$VERSION/PostfixAdmin%20$VERSION.tar.gz.asc \
+# -O postfixadmin-$VERSION.tar.gz.asc || exit 1
#wget -c http://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-$VERSION/postfixadmin-$VERSION.tar.gz.asc
-wget -c https://downloads.sourceforge.net/project/postfixadmin/postfixadmin-3.3.8/PostfixAdmin%20$VERSION.tar.gz.asc \
- -O postfixadmin-$VERSION.tar.gz.asc
# Check signature
#gpg --verify postfixadmin-$VERSION.tar.gz.asc postfixadmin-$VERSION.tar.gz || exit 1
# Decompress
-mkdir postfixadmin-$VERSION
-tar xvf postfixadmin-$VERSION.tar.gz -C postfixadmin-$VERSION --strip-components=1
+mkdir postfixadmin-$VERSION || exit 1
+tar xvf postfixadmin-$VERSION.tar.gz -C postfixadmin-$VERSION --strip-components=1 || exit 1
# Remove package
-rm postfixadmin-$VERSION.tar.gz
-rm postfixadmin-$VERSION.tar.gz.asc
+rm postfixadmin-$VERSION.tar.gz || exit 1
+rm postfixadmin-$VERSION.tar.gz.asc || exit 1
# Sync configuration
-chown -R root: postfixadmin-$VERSION
-cp -a postfixadmin-$OLD_VERSION/config.local.php postfixadmin-$VERSION/config.local.php
-cp -a postfixadmin-$OLD_VERSION/templates_c postfixadmin-$VERSION/templates_c
+chown -R root: postfixadmin-$VERSION || exit 1
+cp -a postfixadmin-$OLD_VERSION/config.local.php postfixadmin-$VERSION/config.local.php || exit 1
+cp -a postfixadmin-$OLD_VERSION/templates_c postfixadmin-$VERSION/templates_c || exit 1
# Pivot
-rm postfixadmin && ln -s postfixadmin-$VERSION postfixadmin
+rm postfixadmin && ln -s postfixadmin-$VERSION postfixadmin || exit 1
# Audit
echo "Audit:" && \