Compare commits
2 Commits
f55fc2129b
...
5246d0805c
Author | SHA1 | Date |
---|---|---|
DeathByDenim | 5246d0805c | |
DeathByDenim | 1c7a3040c8 |
15
deploy.sh
15
deploy.sh
|
@ -17,11 +17,13 @@
|
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
### Deploy script for a game server running multiple open-source game servers
|
||||
### This script is intended for Debian 11, but may work on other apt-based
|
||||
### This script is intended for Debian 11 or 12, but may work on other apt-based
|
||||
### systems too
|
||||
###
|
||||
### Specify domain name:
|
||||
### DOMAINNAME=example.com HOSTEDBYNAME=DeathByDenim ./deploy.sh
|
||||
###
|
||||
### You can also specify NOSSL=1 to disable SSL
|
||||
|
||||
set -e
|
||||
|
||||
|
@ -76,14 +78,9 @@ fi
|
|||
export systemuserhome="$( getent passwd "${systemuser}" | cut -d: -f6 )"
|
||||
|
||||
# Install the web interface for servers that require interactive shells
|
||||
if [ -d console2web ]; then
|
||||
cd console2web
|
||||
git pull
|
||||
cd -
|
||||
else
|
||||
git clone https://github.com/DeathByDenim/console2web.git
|
||||
fi
|
||||
cp console2web/console2web.py /usr/bin/console2web
|
||||
git clone --depth=1 https://github.com/DeathByDenim/console2web.git ${TMPDIR:-/tmp}/console2web
|
||||
cp ${TMPDIR:-/tmp}/console2web/console2web.py /usr/bin/console2web
|
||||
rm -rf ${TMPDIR:-/tmp}/console2web
|
||||
|
||||
# Deploy web interface stuff
|
||||
"$(dirname "$0")"/scripts/deploy_monitoring.sh
|
||||
|
|
|
@ -15,9 +15,10 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
git clone https://github.com/DeathByDenim/d3-serverstats.git
|
||||
cd d3-serverstats
|
||||
git clone https://github.com/DeathByDenim/d3-serverstats.git ${TMPDIR:-/tmp}/d3-serverstats
|
||||
cd ${TMPDIR:-/tmp}/d3-serverstats
|
||||
cp serverstats.py /usr/bin/
|
||||
rm -rf ${TMPDIR:-/tmp}/d3-serverstats
|
||||
|
||||
cat > /etc/systemd/system/serverstats.service <<EOF
|
||||
[Unit]
|
||||
|
|
Loading…
Reference in New Issue