Extend script

This commit is contained in:
2020-07-10 08:14:15 +00:00
parent d1d63c7a1d
commit c8eb575e54

10
extend.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
by="$1"
if [ -z "$by" ]; then
echo "Specify duration in hours"
exit 1
fi
date -d "+$by hour" > /home/ubuntu/minecraft/live_until.txt