diff options
Diffstat (limited to 'cfw-start-pre.sh')
-rw-r--r-- | cfw-start-pre.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cfw-start-pre.sh b/cfw-start-pre.sh index 731d4bbf6e23..0a5383c22bad 100644 --- a/cfw-start-pre.sh +++ b/cfw-start-pre.sh @@ -8,6 +8,9 @@ install -d "/home/$1/.config/clash/service" ln -sf "/opt/clash-for-windows/static/files/linux/${_parch}/service/clash-core-service" \ -t "/home/$1/.config/clash/service" +# fix permissions of directories +chown -R "$1:$1" "/home/$1/.config/clash" + # setcap everytime to prevent the case clash is updated. for clsh in {clash,clash-meta}; do |