Made the script compatible with MacOS
This commit is contained in:
parent
1f19d5c945
commit
0db02ebd64
@ -69,19 +69,20 @@ echo "Copying $filename..."
|
|||||||
cp docker-compose.example.yaml $filename || (echo "You need to have permissions on the folder! (Maybe you forgot to run with sudo?)"; false)
|
cp docker-compose.example.yaml $filename || (echo "You need to have permissions on the folder! (Maybe you forgot to run with sudo?)"; false)
|
||||||
|
|
||||||
# Set PUID
|
# Set PUID
|
||||||
sed -i -e "s/<your_PUID>/$puid/g" $filename
|
sed -i '' -e "s/<your_PUID>/$puid/g" $filename
|
||||||
|
|
||||||
# Set PGID
|
# Set PGID
|
||||||
sed -i -e "s/<your_PGID>/$pgid/g" $filename
|
sed -i '' -e "s/<your_PGID>/$pgid/g" $filename
|
||||||
|
|
||||||
# Set entertainment_folder
|
# Set entertainment_folder
|
||||||
sed -i -e "s;<entertainment_folder>;$ENTERTAINMENT_FOLDER;g" $filename
|
sed -i '' -e "s;<entertainment_folder>;$ENTERTAINMENT_FOLDER;g" $filename
|
||||||
|
|
||||||
read -p "Do you want to run the script now? [Y/n]: " run_now
|
read -p "Do you want to run the script now? [Y/n]: " run_now
|
||||||
run_now=${run_now:-"y"}
|
run_now=${run_now:-"y"}
|
||||||
|
|
||||||
if [ $run_now == "y" ]; then
|
if [ $run_now == "y" ]; then
|
||||||
echo "Running the server..."
|
echo "Running the server..."
|
||||||
|
echo "This is going to take a while..."
|
||||||
docker-compose -f $filename up -d
|
docker-compose -f $filename up -d
|
||||||
else
|
else
|
||||||
echo "Perfect! You can run the server later using the following command:"
|
echo "Perfect! You can run the server later using the following command:"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user