Skip to content

Commit

Permalink
Merge branch 'v4-next' into patricio-deploy-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ijpatricio committed May 3, 2023
2 parents 4876272 + 124e5d9 commit 1f5345d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions docker/prod-ssu/etc/s6-overlay/s6-rc.d/db-migration/up
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f5345d

Please sign in to comment.