From 0e2f531a256516ab7561080c27f07df3782e92ad Mon Sep 17 00:00:00 2001 From: ShaYmez Date: Wed, 13 Oct 2021 00:30:36 +0000 Subject: [PATCH] More scripts --- maint-scripts/freedmr_restart.sh | 50 ++++++++++++++++++++++++++++ maint-scripts/freedmr_update-dash.sh | 25 ++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/maint-scripts/freedmr_restart.sh b/maint-scripts/freedmr_restart.sh index e69de29..89d5d36 100755 --- a/maint-scripts/freedmr_restart.sh +++ b/maint-scripts/freedmr_restart.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +# This script written by Shane Daley M0VUB. The script gracefully shutdown services while services are updated. +# We can also add items in this script for future use like updates or further log trims. +# Run updater to execute a full server update (backend) +# This script will DESTROY all docker images. It is run with FreeDMR Server only! + +# Copyright (C) 2020 Shane P, Daley M0VUB +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# This script is for FreeDMR / SYSTEM X Server only which has been installed from docker_install.sh. It is NOT to be used for DOCKER-COMPOSE. +# NOT TO BE USED FOR DOCKER-COMPOSE INSTALL! PLEASE USE ALTERNATIVE UPDATE SCRIPT FOR FreeDMR / SYSTEM-X THAT HAS BEEN INSTALLED WITH DOCKER-COMPOSE. + +echo Restarting Server..... +sleep 5 +echo . +sleep 1 +echo .. +sleep 1 +echo ... +sleep 1 +echo .... +docker container stop freedmr && +sleep 3 +clear +echo Starting FreeDMR Server..... +docker container start freedmr && +figlet "FreeDMR." && +sleep 2 +echo Flushing NAT tracking table..... +conntrack -F && +sleep 1 +echo checking container is up..... +sleep 2 +docker ps +echo Checking for startup errors..... +sleep 1 +docker container logs freedmr && +echo Done. + + diff --git a/maint-scripts/freedmr_update-dash.sh b/maint-scripts/freedmr_update-dash.sh index e69de29..8d850ef 100755 --- a/maint-scripts/freedmr_update-dash.sh +++ b/maint-scripts/freedmr_update-dash.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# This script written by Shane Daley M0VUB. The script gracefully shutdown services while services are updated. +# We can also add items in this script for future use like updates or further log trims. +# Run updater to execute a full server update (backend) +# This script will DESTROY all docker images. It is run with FreeDMR Server only! + +# Copyright (C) 2020 Shane P, Daley M0VUB +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# This script is for FreeDMR / SYSTEM X Server only which has been installed from docker_install.sh. It is NOT to be used for DOCKER-COMPOSE. +# NOT TO BE USED FOR DOCKER-COMPOSE INSTALL! PLEASE USE ALTERNATIVE UPDATE SCRIPT FOR FreeDMR / SYSTEM-X THAT HAS BEEN INSTALLED WITH DOCKER-COMPOSE. + +echo Starting Dashboard update..... + +echo There are no updates yet! \ No newline at end of file