diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up index 8618a7e8c..250d5d8b1 100644 --- a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up +++ b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up @@ -1,9 +1,2 @@ #!/command/execlineb -P -VERSION=$(php bootstrap/getVersion.php) - -if echo "$VERSION" | grep -q "nightly"; then - php /var/www/html/artisan migrate:fresh --force - php /var/www/html/artisan db:seed --class ProductionSeeder --force -else - php /var/www/html/artisan migrate --force --isolated -fi +php /var/www/html/artisan migrate --force --isolated diff --git a/scripts/install.sh b/scripts/install.sh index d34bc6182..4d512120a 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -11,7 +11,7 @@ OS_TYPE=$(cat /etc/os-release | grep -w "ID" | cut -d "=" -f 2 | tr -d '"') OS_VERSION=$(cat /etc/os-release | grep -w "VERSION_ID" | cut -d "=" -f 2 | tr -d '"') LATEST_VERSION=$(curl --silent https://get.coollabs.io/versions.json | grep -i version | sed -n '2p' | xargs | awk '{print $2}' | tr -d ',') -if [ "$EUID" -ne 0 ]; then +if [ $EUID != 0 ]; then echo "Please run as root" exit fi