e24be310ae
systemd service install now uses sed to insert the repo directory into the call service script before deploying. renamed install script to fetch as to avoid confusion as it fetches the basic binary.
9 lines
370 B
Bash
Executable file
9 lines
370 B
Bash
Executable file
#!/bin/bash
|
|
# copies template to systemd
|
|
SDIR=$(dirname "$(readlink -f "$0")") || exit
|
|
DIR=$(dirname "$SDIR") || exit
|
|
SDDIR="/etc/systemd/system"
|
|
echo Caddy Reposity Root: $DIR
|
|
echo "Installing Template Service file at $SDIR/caddy@.service"
|
|
echo ---- Service file as written to $SDDIR ----
|
|
cat $SDIR/caddy@.service | sed 's:@d:'$DIR':'g | sudo tee $SDDIR/caddy@.service
|