增加判断以防奇奇怪怪的问题

This commit is contained in:
Windy_CI 2024-08-31 17:03:22 +08:00
parent 622084b444
commit f64afce0bf

View File

@ -1,9 +1,9 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
mkdir /data
if [ ! -d "/data" ];then mkdir /data; fi
rm /etc/config/adguardhome
rm /etc/init.d/adguardhome
if [ ! -f "/etc/init.d/adguardhome" ]; then rm /etc/init.d/adguardhome; fi
if [ ! -f "/etc/config/adguardhome" ]; then rm /etc/config/adguardhome; fi
exit 0