first commit with existing files
This commit is contained in:
15
nccron_deprecated/cron.sh
Normal file
15
nccron_deprecated/cron.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo -n "Container name: "
|
||||
|
||||
read cont
|
||||
|
||||
sudo cp ./files/nccron.service /etc/systemd/system/nccron.service
|
||||
sudo cp ./files/nccron.timer /etc/systemd/system/nccron.timer
|
||||
|
||||
sudo sed -i "s/%1%/$cont/g" /etc/systemd/system/nccron.service
|
||||
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now nccron.timer
|
||||
Reference in New Issue
Block a user