mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-09 15:08:21 +00:00
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:
parent
851578ee02
commit
436f5e30d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user