Adjust installscript

This commit is contained in:
zontreck 2024-05-25 05:19:59 -07:00
parent da3762177a
commit 45ef595bae
2 changed files with 6 additions and 7 deletions

View file

@ -6,15 +6,10 @@ import 'package:servermanager/game.dart';
import 'package:servermanager/packets/ClientPackets.dart';
import 'package:servermanager/structs/settings.dart';
void main(List<String> args) async {
void main() async {
print("Current working directory: ${Directory.current.path}");
print("/!\\ This server is now starting... /!\\\n\n");
print("Checking for command line args...");
if (args.isNotEmpty) {
print("Changing current working directory to ${args[0]}");
Directory.current = args[0];
}
ClientPackets.register();
// Set up paths
Settings settings = Settings();

View file

@ -1,5 +1,9 @@
#!/bin/bash
/app/server /mnt/server
cp /app/server /mnt/server/server
pushd /mnt/server
./server
popd
echo "Initial Install completed"