2
0
Fork 0

zio-update-caddy: fix symlink not being made on update

main
Ducky 2023-08-12 18:49:10 +01:00
parent 9e755f4b0f
commit 6e78c688a2
1 changed files with 3 additions and 5 deletions

View File

@ -20,8 +20,6 @@ caddy_version="${caddy_version_array[0]}"
mv "$caddy_tmp_install" "$caddy_install-$caddy_version" mv "$caddy_tmp_install" "$caddy_install-$caddy_version"
if [[ ! -L "$caddy_install" ]] && [[ ! -e "$caddy_install" ]]; then rm -f "$caddy_install"
rm -f "$caddy_install" ln -s -f "$caddy_install-$caddy_version" "$caddy_install"
ln -s -f "$caddy_install-$caddy_version" "$caddy_install" chmod +x "$caddy_install"
chmod +x "$caddy_install"
fi