simple helper scripts

This commit is contained in:
2023-08-21 09:44:23 +03:00
parent 5b95c415c6
commit 4629bf2976
2 changed files with 14 additions and 0 deletions

6
restart-service.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
mkdir -p data
docker-compose up -d -t 0 --build
sleep 3
cat data/flees.log

8
rotate-log.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
docker-compose stop -t 0
curdate=$( date +%Y-%m-%d-%H%M%S )
if [[ -e data/flees.log ]]; then
mv -v data/flees.log data/flees.${curdate}.log
fi
docker-compose up -d -t 0