1
0
Fork 0

force update mcupdater jars every 7 days

This commit is contained in:
Daniel Wolf 2021-08-23 20:46:36 -04:00
parent bc2537b231
commit f177ce468c
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 7 additions and 1 deletions

View File

@ -90,6 +90,9 @@ fi
# === Download MCUpdater ===
if [[ -e /mnt/config/bin/MCU-FastPack-latest.jar ]]; then
find /mnt/config/www/minecraft/MCU-FastPack-latest.jar -mtime +7 -delete
fi
if [[ ! -e /mnt/config/bin/MCU-FastPack-latest.jar ]]; then
if [[ ! -d /mnt/config/bin ]]; then
s6-setuidgid guardian mkdir -p /mnt/config/bin
@ -97,6 +100,9 @@ if [[ ! -e /mnt/config/bin/MCU-FastPack-latest.jar ]]; then
s6-setuidgid guardian wget -P /mnt/config/bin "https://files.mcupdater.com/MCU-FastPack-latest.jar"
fi
if [[ -e /mnt/config/www/minecraft/MCUpdater-latest.jar ]]; then
find /mnt/config/www/minecraft/MCUpdater-latest.jar -mtime +7 -delete
fi
if [[ ! -e /mnt/config/www/minecraft/MCUpdater-latest.jar ]]; then
if [[ ! -d /mnt/config/www/minecraft ]]; then
s6-setuidgid guardian mkdir -p /mnt/config/www/minecraft
@ -257,4 +263,4 @@ if [[ ! -z "${MINECRAFT_VERSION}" ]]; then
sed -i "s/yarn=latest/yarn=${YARN_VERSION}/g" /mnt/config/www/minecraft/modpack.xml
sed -i "s/depends=\"cloth-config\"/depends=\"\"/g" /mnt/config/www/minecraft/modpack.xml
sed -i 's/+/%2B/g' /mnt/config/www/minecraft/modpack.xml
fi
fi