b4f1093b03
moved fetch to library and called download improved run commanad with set_env function added upgrade script added systemd scripts and refactored service file added ini-gen function and separate call via ini-gen script
7 lines
377 B
Bash
Executable file
7 lines
377 B
Bash
Executable file
#!/bin/bash
|
|
[[ ! $GITEA_DIR ]] && export GITEA_DIR="$(dirname "$(cd "$(readlink -f "$BASH_SOURCE")"; pwd -P)")"
|
|
SDDIR="/etc/systemd/system"
|
|
ServiceFile=$GITEA_DIR/scripts/systemd/gitea@.service
|
|
echo "Installing Template Service file at $ServiceFile"
|
|
echo ---- Service file as written to $SDDIR ----
|
|
cat $ServiceFile | sed 's:@d:'$GITEA_DIR':'g | sudo tee $SDDIR/gitea@.service
|