useful_web_tools/deploy.sh

13 lines
358 B
Bash
Executable File

#!/bin/bash
chown www-data:www-data -R cert_decoder
chown www-data:www-data -R diff
cp cert_decoder/cert-decoder.service /lib/systemd/system/
cp diff/diff-tool.service /lib/systemd/system/
systemctl enable --now cert-decoder
systemctl enable --now diff-tool
sudo systemctl daemon-reload
sudo systemctl restart cert-decoder
sudo systemctl restart diff-tool