2020-05-12 14:51:19 -07:00
|
|
|
#!/bin/bash
|
|
|
|
ARCH=${1:-amd64}
|
|
|
|
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
|
|
|
|
echo Making Link to $ARCH binary in $DIR/bin/$ARCH/caddy
|
|
|
|
rm $DIR/caddy
|
|
|
|
ln -s $DIR/bin/$ARCH/caddy $DIR/caddy
|
2020-05-18 13:44:22 -07:00
|
|
|
sudo chown caddy:sysadmin $DIR/bin/$ARCH/caddy
|
|
|
|
sudo chown -h caddy:sysadmin $DIR/caddy
|