Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56314456
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
872 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/files/usr/local/sbin/init-container b/files/usr/local/sbin/init-container
index c35241d..953b773 100755
--- a/files/usr/local/sbin/init-container
+++ b/files/usr/local/sbin/init-container
@@ -1,9 +1,20 @@
#!/bin/sh
+if [ -z "$APP_KEY" ]; then
+ echo "You must set APP_KEY environment variable when running this container."
+ echo
+ echo "This key would be dangerous to set automatically as you need it to stay"
+ echo "the same in production to avoid loss of encrypted and hashed data."
+ echo
+ echo "You can do so adding this argument to your container run command:"
+ echo "-e \"APP_KEY=$(openssl rand -base64 36)\""
+ exit 1
+fi
+
if [ ! -f .initialized ]; then
# Container is initialized according the environment variables
# passed to the container to setup the application.
/usr/local/bin/setup-container
fi
/usr/local/sbin/runsvdir-init
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Nov 6, 22:50 (2 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4235980
Default Alt Text
(872 B)
Attached To
Mode
rDCACHET Cachet Docker image
Attached
Detach File
Event Timeline
Log In to Comment