mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-11 00:16:54 +00:00
Add some echo to Sandstorm scripts.
This commit is contained in:
@@ -3,11 +3,17 @@
|
|||||||
# This script only runs once, when the app connects to sandstorm.
|
# This script only runs once, when the app connects to sandstorm.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
echo "In build.sh"
|
||||||
|
|
||||||
cd /opt/app
|
cd /opt/app
|
||||||
|
|
||||||
cp .env.sandstorm .env
|
if [ -f /opt/app/.env.sandstorm ] ; then
|
||||||
|
echo "No sandstorm env file, copy."
|
||||||
|
cp .env.sandstorm .env
|
||||||
|
else
|
||||||
|
echo "Sandstorm env file exists already."
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -f /opt/app/composer.json ] ; then
|
if [ -f /opt/app/composer.json ] ; then
|
||||||
if [ ! -f composer.phar ] ; then
|
if [ ! -f composer.phar ] ; then
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Runs every time we create a new grain!
|
# Runs every time we create a new grain!
|
||||||
|
echo "Now in launcher.sh"
|
||||||
|
|
||||||
# Create a bunch of folders under the clean /var that php, nginx, and mysql expect to exist
|
# Create a bunch of folders under the clean /var that php, nginx, and mysql expect to exist
|
||||||
mkdir -p /var/lib/mysql
|
mkdir -p /var/lib/mysql
|
||||||
@@ -30,7 +31,6 @@ mkdir -p /var/storage/framework/views
|
|||||||
mkdir -p /var/storage/logs
|
mkdir -p /var/storage/logs
|
||||||
mkdir -p /var/storage/upload
|
mkdir -p /var/storage/upload
|
||||||
|
|
||||||
|
|
||||||
# Ensure mysql tables created
|
# Ensure mysql tables created
|
||||||
HOME=/etc/mysql /usr/bin/mysql_install_db --force
|
HOME=/etc/mysql /usr/bin/mysql_install_db --force
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# When you change this file, you must take manual action. Read this doc:
|
# When you change this file, you must take manual action. Read this doc:
|
||||||
# - https://docs.sandstorm.io/en/latest/vagrant-spk/customizing/#setupsh
|
# - https://docs.sandstorm.io/en/latest/vagrant-spk/customizing/#setupsh
|
||||||
|
echo "Now in setup.sh"
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user