Spaces:
Running
Running
File size: 366 Bytes
ba2b0bb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#!/bin/bash
set -euo pipefail
currentDir=`pwd`
echo "Force linking all *.service files to /etc/systemd/system"
ln -sf $currentDir/*/**.service /etc/systemd/system
echo "Reloading systemctl daemon.."
systemctl daemon-reload
echo "Enabling service.."
systemctl enable --now $(find $currentDir -type f -name "*.service" -print0 | xargs -0 -n1 -P8 basename)
# reboot
|