Этот коммит содержится в:
Виктор
2025-07-31 18:54:43 +09:00
коммит произвёл GitHub
родитель db83ad3d80
Коммит 5486dcdc93
+17 -17
Просмотреть файл
@@ -2,14 +2,14 @@
mount -o remount,rw /
systemctl disable xlx.timer xlx.service &>/dev/null
systemctl stop xlx.timer xlx.service &>/dev/null
systemctl disable ykt.timer ykt.service &>/dev/null
systemctl stop ykt.timer ykt.service &>/dev/null
if [ -L /etc/systemd/system/xlx.service ]; then
unlink /etc/systemd/system/xlx.service
if [ -L /etc/systemd/system/ykt.service ]; then
unlink /etc/systemd/system/ykt.service
fi
if [ -L /etc/systemd/system/xlx.timer ]; then
unlink /etc/systemd/system/xlx.timer
if [ -L /etc/systemd/system/ykt.timer ]; then
unlink /etc/systemd/system/ykt.timer
fi
systemctl daemon-reload
@@ -18,7 +18,7 @@ if [ -f /usr/local/sbin/pistar-daily.cron ]; then
sed -i "s/^\/usr\/local\/sbin\/HostFilesUpdate.sh.*/\/usr\/local\/sbin\/HostFilesUpdate.sh/" /usr/local/sbin/pistar-daily.cron
fi
find /usr/local/bin/ -type l -name "xlx-*" -delete
find /usr/local/bin/ -type l -name "ykt-*" -delete
if [ -d /xlx ]; then
rm -rf /tmp
@@ -27,20 +27,20 @@ fi
wget -O /usr/local/etc/DMRIds.dat https://xlx.dmrykt.ru/pistar/DMRIds.dat
# Old files
if [ -f /etc/cron.d/xlx-cron ]; then
rm -rf /etc/cron.d/xlx-cron
if [ -f /etc/cron.d/ykt-cron ]; then
rm -rf /etc/cron.d/ykt-cron
fi
if [ -f /usr/local/bin/xlx-del ]; then
rm -rf /usr/local/bin/xlx-del
if [ -f /usr/local/bin/ykt-del ]; then
rm -rf /usr/local/bin/ykt-del
fi
if [ -f /usr/local/bin/xlx-getdmrid ]; then
rm -rf /usr/local/bin/xlx-getdmrid
if [ -f /usr/local/bin/ykt-getdmrid ]; then
rm -rf /usr/local/bin/ykt-getdmrid
fi
if [ -f /usr/local/bin/xlx-gethost ]; then
rm -rf /usr/local/bin/xlx-gethost
if [ -f /usr/local/bin/ykt-gethost ]; then
rm -rf /usr/local/bin/ykt-gethost
fi
if [ -f /usr/local/bin/xlx-update ]; then
rm -rf /usr/local/bin/xlx-update
if [ -f /usr/local/bin/ykt-update ]; then
rm -rf /usr/local/bin/ykt-update
fi
if [ -f /usr/local/etc/DMRIdsYKT.dat ]; then
rm -rf /usr/local/etc/DMRIdsYKT.dat