mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-17 01:06:13 +00:00
fix: update install script to replace service file with init file
This commit is contained in:
parent
75e76a0394
commit
bff107b7fe
12
install.sh
12
install.sh
@ -58,19 +58,19 @@ tar zxf $ua3f_tar && rm -f $ua3f_tar
|
|||||||
mv ua3f /usr/bin/ua3f
|
mv ua3f /usr/bin/ua3f
|
||||||
chmod +x /usr/bin/ua3f
|
chmod +x /usr/bin/ua3f
|
||||||
|
|
||||||
if [ -f "/etc/init.d/ua3f.service" ]; then
|
if [ -f "/etc/init.d/ua3f.init" ]; then
|
||||||
rm "/etc/init.d/ua3f.service"
|
rm "/etc/init.d/ua3f.init"
|
||||||
fi
|
fi
|
||||||
if [ -f "/etc/init.d/ua3f" ]; then
|
if [ -f "/etc/init.d/ua3f" ]; then
|
||||||
rm "/etc/init.d/ua3f"
|
rm "/etc/init.d/ua3f"
|
||||||
fi
|
fi
|
||||||
wget https://blog.sunbk201.site/cdn/ua3f.service
|
wget https://blog.sunbk201.site/cdn/ua3f.init
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Download ua3f.service Failed, Please Retry."
|
echo "Download ua3f.init Failed, Please Retry."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
mv ua3f.service /etc/init.d/ua3f && chmod +x /etc/init.d/ua3f
|
mv ua3f.init /etc/init.d/ua3f && chmod +x /etc/init.d/ua3f
|
||||||
/etc/init.d/ua3f.service enable
|
/etc/init.d/ua3f enable
|
||||||
|
|
||||||
wget https://blog.sunbk201.site/cdn/ua3f.uci
|
wget https://blog.sunbk201.site/cdn/ua3f.uci
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user