@@ -9,12 +9,14 @@ python -m pip config set global.index-url https://pypi.org/simple > /dev/null
99# rm /etc/resolv.conf
1010# ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
1111
12- if [[ $COUNTRY == ' cn' ]]; then
13- sudo timedatectl set-timezone Asia/Shanghai
14- elif [[ $COUNTRY == ' ru' ]]; then
15- sudo timedatectl set-timezone Europe/Moscow
16- else
17- sudo timedatectl set-timezone Asia/Tehran
12+ if [ " ${MODE} " != " install-docker" ]; then
13+ if [[ $COUNTRY == ' cn' ]]; then
14+ sudo timedatectl set-timezone Asia/Shanghai
15+ elif [[ $COUNTRY == ' ru' ]]; then
16+ sudo timedatectl set-timezone Asia/Moscow
17+ else
18+ sudo timedatectl set-timezone Asia/Tehran
19+ fi
1820fi
1921
2022groupadd -f hiddify-common
3941
4042ln -sf $( pwd) /sysctl.conf /etc/sysctl.d/hiddify.conf
4143
42- sysctl --system > /dev/null
44+ if [ " ${MODE} " != " install-docker" ]; then
45+ sysctl --system > /dev/null
46+ fi
4347
4448if [[ " $ONLY_IPV4 " != true ]]; then
4549 sysctl -w net.ipv6.conf.all.disable_ipv6=0
@@ -83,7 +87,10 @@ echo "@reboot root /opt/hiddify-manager/install.sh --no-gui --no-log >> /opt/hid
8387echo " @daily root /opt/hiddify-manager/common/daily_actions.sh >> /opt/hiddify-manager/log/system/daily_actions.log 2>&1" > /etc/cron.d/hiddify_daily_memory_release
8488service cron reload
8589
86- localectl set-locale LANG=C.UTF-8
90+ if [ " ${MODE} " != " install-docker" ]; then
91+ localectl set-locale LANG=C.UTF-8
92+ fi
93+
8794update-locale LANG=C.UTF-8
8895
8996echo " hiddify-panel ALL=(root) NOPASSWD: /opt/hiddify-manager/common/commander.py" > /etc/sudoers.d/hiddify
0 commit comments