#!/bin/bash echo "Entered main script." ServerDir=/var/www/remotely RemotelyData=/remotely-data AppSettingsVolume=/remotely-data/appsettings.json AppSettingsWww=/var/www/remotely/appsettings.json if [ ! -f "$AppSettingsVolume" ]; then echo "Copying appsettings.json to volume." cp "$AppSettingsWww" "$AppSettingsVolume" fi if [ -f "$AppSettingsWww" ]; then rm "$AppSettingsWww" fi ln -s "$AppSettingsVolume" "$AppSettingsWww" echo "Starting Remotely server." exec /usr/bin/dotnet /var/www/remotely/Remotely_Server.dll