From 11ab16e7679d0acc0e920b6243e3b10873f32f06 Mon Sep 17 00:00:00 2001 From: ex0nuss Date: Fri, 25 Dec 2020 01:18:08 +0100 Subject: [PATCH] More env vars for config.php added. --- build/Dockerfile | 4 +++- build/config.php | 4 ++-- config.php | 50 ------------------------------------------------ 3 files changed, 5 insertions(+), 53 deletions(-) delete mode 100644 config.php diff --git a/build/Dockerfile b/build/Dockerfile index e24a728..18a0284 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -42,11 +42,13 @@ COPY config.php /var/www/html/config.php COPY entrypoint.sh / ENV APACHE2_PORT=80 -ENV PASSPHRASE= +ENV PASSPHRASE=admin ENV RWSOLS_MAX_PINGS=15 ENV RWSOLS_SLEEP_TIME=5 ENV RWSOLS_COMPUTER_NAME= ENV RWSOLS_COMPUTER_MAC= ENV RWSOLS_COMPUTER_IP= +ENV RWSOLS_SLEEP_PORT=7760 +ENV RWSOLS_SLEEP_CMD=suspend ENTRYPOINT ["/entrypoint.sh"] diff --git a/build/config.php b/build/config.php index def253e..f53e72b 100644 --- a/build/config.php +++ b/build/config.php @@ -34,12 +34,12 @@ // This is the Port being used by the Windows SleepOnLan Utility to initiate a Sleep State // http://www.ireksoftware.com/SleepOnLan/ // Alternate Download Link: http://www.jeremyblum.com/wp-content/uploads/2013/07/SleepOnLan.zip - $COMPUTER_SLEEP_CMD_PORT = 7760; + $COMPUTER_SLEEP_CMD_PORT = REPLACE_RWSOLS_SLEEP_PORT; // Command to be issued by the windows sleeponlan utility // options are suspend, hibernate, logoff, poweroff, forcepoweroff, lock, reboot // You can create a windows scheduled task that starts sleeponlan.exe on boot with following startup parameters /auto /port=7760 - $COMPUTER_SLEEP_CMD = "suspend"; + $COMPUTER_SLEEP_CMD = "REPLACE_RWSOLS_SLEEP_CMD"; // This is the location of the bootstrap style folder relative to your index and config file. Default = "" (Same folder as this file) // Directory must be called "bootstrap". You may wish to move if this WOL script is the "child" of a larger web project on your Pi, that will also use bootstrap styling. diff --git a/config.php b/config.php deleted file mode 100644 index 685b296..0000000 --- a/config.php +++ /dev/null @@ -1,50 +0,0 @@ -