mirror of
https://github.com/mainsail-crew/mainsail-docker.git
synced 2026-03-11 06:20:14 +01:00
17 lines
381 B
Bash
17 lines
381 B
Bash
#!/bin/bash
|
|
|
|
cd /home/mainsail
|
|
|
|
if ! [ -f "has_run" ]; then
|
|
touch has_run
|
|
sudo chown -hR mainsail:mainsail .[^.]*
|
|
fi
|
|
|
|
if ! [ -d "mainsail" ]; then
|
|
su mainsail -c "wget https://github.com/meteyou/mainsail/releases/latest/download/mainsail.zip"
|
|
su mainsail -c "mkdir mainsail"
|
|
su mainsail -c "unzip -o -d mainsail mainsail.zip"
|
|
fi
|
|
|
|
nginx -t
|
|
nginx -g "daemon off;" |