add install scripts and move secrets to uncommited file
This commit is contained in:
parent
963907fcf4
commit
2fbec4da69
6 changed files with 60 additions and 0 deletions
19
install.sh
Executable file
19
install.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
echo $SCRIPT_DIR
|
||||
|
||||
cp lighthouse.service.default lighthouse.service
|
||||
sed -i 's|WORKING_DIR|'"$SCRIPT_DIR"'|g' lighthouse.service
|
||||
|
||||
|
||||
cp ./lighthouse.service /etc/systemd/system/.
|
||||
cp ./lighthouse.timer /etc/systemd/system/.
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable lighthouse.service
|
||||
systemctl enable lighthouse.timer
|
||||
systemctl start lighthouse.timer
|
||||
|
||||
echo "All done."
|
||||
Loading…
Add table
Add a link
Reference in a new issue