Fixed cron being incorrectly copied in during upgrade (#337)

The cron directory was being copied into the existing cron directory
during the upgrade, resulting in a doubly nested cron directory for
every upgrade.
This commit is contained in:
Leo 2022-10-13 01:33:40 -06:00 committed by GitHub
parent 851578ee02
commit 436f5e30d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,8 +159,8 @@ cp /opt/Upgrade/preserve/ssh/* /opt/wz_mini/etc/ssh/
cp /opt/Upgrade/preserve/configs/* /opt/wz_mini/etc/configs
cp -r /opt/Upgrade/preserve/wireguard /opt/wz_mini/etc/
cp -r /opt/Upgrade/preserve/rc.local.d /opt/wz_mini/etc/
cp -r /opt/Upgrade/preserve/cron /opt/wz_mini/etc/cron
cp -r /opt/Upgrade/preserve/resolv.dnsmasq /opt/wz_mini/etc/resolv.dnsmasq
cp /opt/Upgrade/preserve/cron/* /opt/wz_mini/etc/cron/
cp /opt/Upgrade/preserve/resolv.dnsmasq /opt/wz_mini/etc/resolv.dnsmasq
rm -rf /opt/Upgrade
sync