Fix installation issue on arch-linux

This commit is contained in:
Nick Peng
2019-11-07 22:33:25 +08:00
parent 408c199564
commit 25c6cab4a8

View File

@@ -82,8 +82,10 @@ install_files()
install -v -m 0755 -t $SMARTDNS_INIT_DIR etc/init.d/smartdns install -v -m 0755 -t $SMARTDNS_INIT_DIR etc/init.d/smartdns
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
if [ $ISSYSTEMD -ne 0 ]; then
return 1 return 1
fi fi
fi
if [ $ISSYSTEMD -eq 0 ]; then if [ $ISSYSTEMD -eq 0 ]; then
SYSTEM_UNIT_PATH="`get_systemd_path`" SYSTEM_UNIT_PATH="`get_systemd_path`"