diff --git a/clientapi/entrypoint.sh b/clientapi/entrypoint.sh index 735b318..17f7e34 100644 --- a/clientapi/entrypoint.sh +++ b/clientapi/entrypoint.sh @@ -15,6 +15,7 @@ sed -i "s|REPLACE_MYSQL_USER|$MYSQL_USER|g" /var/www/html/config.php sed -i "s|REPLACE_MYSQL_PASSWORD|$MYSQL_PASSWORD|g" /var/www/html/config.php sed -i "s|REPLACE_MYSQL_DATABASE|$MYSQL_DATABASE|g" /var/www/html/config.php sed -i "s|REPLACE_GLOBAL_PASSWORD|$GLOBAL_PASSWORD|g" /var/www/html/config.php +sed -i "s|REPLACE_HOST_NETWORK_ADDRESS|$HOST_NETWORK_ADDRESS|g" /var/www/html/config.php # generate https key and certificate if [ ! -f /etc/clientapi/privkey.pem ]; then diff --git a/clientapi/php/client.php b/clientapi/php/client.php index a9c914b..325a616 100644 --- a/clientapi/php/client.php +++ b/clientapi/php/client.php @@ -218,7 +218,7 @@ array('networkfailed', "Nutzername falsch oder Netzwerkfehler."), array('success', "Anmeldung erfolgreich!"), array('shutdown', 300), - array('smbserver', $result['settings']), + array('smbserver', HOST_NETWORK_ADDRESS), array('driveone', "X:"), array('drivetwo', "Y:"), array('drivethree', "Z:"), diff --git a/clientapi/php/config.php b/clientapi/php/config.php index 8217a26..ec3e9a6 100644 --- a/clientapi/php/config.php +++ b/clientapi/php/config.php @@ -3,4 +3,5 @@ const MYSQL_PASSWORD = "REPLACE_MYSQL_PASSWORD"; const MYSQL_DATABASE = "REPLACE_MYSQL_DATABASE"; const GLOBAL_PASSWORD = "REPLACE_GLOBAL_PASSWORD"; + const HOST_NETWORK_ADDRESS = "REPLACE_HOST_NETWORK_ADDRESS"; ?> diff --git a/service.json b/service.json index a5f8484..52fa29c 100644 --- a/service.json +++ b/service.json @@ -23,7 +23,8 @@ "GLOBAL_PASSWORD", "MYSQL_PASSWORD", "MYSQL_USER", - "MYSQL_DATABASE" + "MYSQL_DATABASE", + "HOST_NETWORK_ADDRESS" ] } ],