aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian-dl2
-rwxr-xr-xnextcloud-dl4
-rwxr-xr-xpostfixadmin-dl25
3 files changed, 17 insertions, 14 deletions
diff --git a/debian-dl b/debian-dl
index b9306b2..68e24aa 100755
--- a/debian-dl
+++ b/debian-dl
@@ -18,7 +18,7 @@ BASE="`dirname $URL`"
RATE="$2"
FILENAME="`basename $URL`"
SIGN="sign"
-HASHES="MD5SUMS SHA1SUMS SHA256SUMS SHA512SUMS"
+HASHES="SHA256SUMS SHA512SUMS"
# Fetch hashes
for hash in $HASHES; do
diff --git a/nextcloud-dl b/nextcloud-dl
index 39408ab..2df76b9 100755
--- a/nextcloud-dl
+++ b/nextcloud-dl
@@ -25,8 +25,9 @@ elif [ -d "nextcloud-$VERSION" ]; then
fi
# Download package
-wget -c https://download.nextcloud.com/server/releases/nextcloud-$VERSION.tar.bz2 || exit 1
+wget -c https://download.nextcloud.com/server/releases/nextcloud-$VERSION.tar.bz2 || exit 1
wget -c https://download.nextcloud.com/server/releases/nextcloud-$VERSION.tar.bz2.sha256 || exit 1
+wget -c https://download.nextcloud.com/server/releases/nextcloud-$VERSION.metadata || exit 1
sha256sum -c nextcloud-$VERSION.tar.bz2.sha256 || exit -1
# Decompress
@@ -42,6 +43,7 @@ sha256sum -c nextcloud-$VERSION.tar.bz2.sha256 || exit -1
# Remove package
rm nextcloud-$VERSION.tar.bz2
rm nextcloud-$VERSION.tar.bz2.sha256
+rm nextcloud-$VERSION.metadata
# Sync configuration and data
chown -R root: nextcloud-$VERSION
diff --git a/postfixadmin-dl b/postfixadmin-dl
index d71eb96..5d05e80 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:" && \