mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
23 lines
527 B
Bash
23 lines
527 B
Bash
#!/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 |