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
8 lines
292 B
Bash
Executable file
8 lines
292 B
Bash
Executable file
#!/bin/bash
|
|
ServiceName=gitea
|
|
Instance=$1
|
|
[[ ! $1 ]] && echo warning no instance supplied using default && Instance=default
|
|
Service=$ServiceName@$Instance
|
|
systemctl is-active --quiet $Service && \
|
|
sudo systemctl enable $Service || \
|
|
echo "can't persist $Instance as it must be running first"
|