aboutsummaryrefslogtreecommitdiff
path: root/postfixadmin-dl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-12-31 17:16:17 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-12-31 17:16:17 -0300
commit6d8a50b8549c7dd3cf2496e759353b203ef76462 (patch)
tree8676c5abf81e849ce10662ebbf8e6d9cf77d1b89 /postfixadmin-dl
parent74b5c9e5dc32a1a12964cbc62f529ada31a4a41b (diff)
downloaddownloaders-6d8a50b8549c7dd3cf2496e759353b203ef76462.tar.gz
downloaders-6d8a50b8549c7dd3cf2496e759353b203ef76462.tar.bz2
Fix: postfixadmin-dl: major update and fixes
Diffstat (limited to 'postfixadmin-dl')
-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:" && \