mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +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
|
||||
chmod +x /usr/bin/ua3f
|
||||
|
||||
if [ -f "/etc/init.d/ua3f.service" ]; then
|
||||
rm "/etc/init.d/ua3f.service"
|
||||
if [ -f "/etc/init.d/ua3f.init" ]; then
|
||||
rm "/etc/init.d/ua3f.init"
|
||||
fi
|
||||
if [ -f "/etc/init.d/ua3f" ]; then
|
||||
rm "/etc/init.d/ua3f"
|
||||
fi
|
||||
wget https://blog.sunbk201.site/cdn/ua3f.service
|
||||
wget https://blog.sunbk201.site/cdn/ua3f.init
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download ua3f.service Failed, Please Retry."
|
||||
echo "Download ua3f.init Failed, Please Retry."
|
||||
exit 1
|
||||
fi
|
||||
mv ua3f.service /etc/init.d/ua3f && chmod +x /etc/init.d/ua3f
|
||||
/etc/init.d/ua3f.service enable
|
||||
mv ua3f.init /etc/init.d/ua3f && chmod +x /etc/init.d/ua3f
|
||||
/etc/init.d/ua3f enable
|
||||
|
||||
wget https://blog.sunbk201.site/cdn/ua3f.uci
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user