From 1125c5b796b257fcf4b748a8531734b3d343c133 Mon Sep 17 00:00:00 2001 From: Uggla Date: Fri, 8 May 2015 17:47:40 +0200 Subject: [PATCH] Add auth file --- Dockerfile | 6 +++--- auth_papatcher.sh | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 auth_papatcher.sh diff --git a/Dockerfile b/Dockerfile index cf11f92..4374db2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,6 @@ wget http://nanodesu.info/stuff/pa/mods/NodePAMaster.zip && \ wget https://dl.dropboxusercontent.com/u/28565393/Planetary%20Annihilation/colours/color_table.js RUN chmod +x /home/pa/auth_papatcher.sh && \ chmod +x /home/pa/papatcher.go && \ -unzip /home/pa/NodePAMaster.zip -#/home/pa/auth_papatcher.sh && \ -#cp color_table.js ./.local/Uber\ Entertainment/Planetary\ Annihilation/stable/media/server-script/lobby/color_table.js && \ +unzip /home/pa/NodePAMaster.zip && \ +/home/pa/auth_papatcher.sh && \ +cp color_table.js ./.local/Uber\ Entertainment/Planetary\ Annihilation/stable/media/server-script/lobby/color_table.js diff --git a/auth_papatcher.sh b/auth_papatcher.sh new file mode 100644 index 0000000..537daa3 --- /dev/null +++ b/auth_papatcher.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Provide credentials to papatcher +# Enter your pa credentials below +PA_USER="pauser" +PA_PASSWORD="papassword" + +(echo "$PA_USER"; sleep 1s; echo $PA_PASSWORD) | go run papatcher.go + +echo "Do not care of previous error message !" +exit 0