[connfa-web] Proper syntax to define a variable within double quotes
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connfa-web] Proper syntax to define a variable within double quotes
- Date: Tue, 18 Jun 2019 17:29:55 +0000 (UTC)
commit ef647d58791f023f330000d2f33380db37683dc5
Author: Andrea Veri <averi redhat com>
Date: Tue Jun 18 19:29:42 2019 +0200
Proper syntax to define a variable within double quotes
entrypoint.sh | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/entrypoint.sh b/entrypoint.sh
index 77ef657..371fc01 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,12 +1,12 @@
#!/bin/sh
-sed -i "s/CONNFA_APP_KEY/$CONNFA_APP_KEY/g" /app/connfa/.env
-sed -i "s/CONNFA_APP_URL/$CONNFA_APP_URL/g" /app/connfa/.env
-sed -i "s/CONNFA_MYSQL_HOST/$CONNFA_MYSQL_HOST/g" /app/connfa/.env
-sed -i "s/CONNFA_MYSQL_DB/$CONNFA_MYSQL_DB/g" /app/connfa/.env
-sed -i "s/CONNFA_MYSQL_USER/$CONNFA_MYSQL_USER/g" /app/connfa/.env
-sed -i "s/CONNFA_MYSQL_PASS/$CONNFA_MYSQL_PASS/g" /app/connfa/.env
+sed -i "s/CONNFA_APP_KEY/${CONNFA_APP_KEY}/g" /app/connfa/.env
+sed -i "s/CONNFA_APP_URL/${CONNFA_APP_URL}/g" /app/connfa/.env
+sed -i "s/CONNFA_MYSQL_HOST/${CONNFA_MYSQL_HOST}/g" /app/connfa/.env
+sed -i "s/CONNFA_MYSQL_DB/${CONNFA_MYSQL_DB}/g" /app/connfa/.env
+sed -i "s/CONNFA_MYSQL_USER/${CONNFA_MYSQL_USER}/g" /app/connfa/.env
+sed -i "s/CONNFA_MYSQL_PASS/${CONNFA_MYSQL_PASS}/g" /app/connfa/.env
php artisan migrate
-php artisan password:change --name=admin --password="$CONNFA_ADMIN_PASS"
-exec /usr/bin/httpd -DFOREGROUND
+php artisan password:change --name=admin --password="${CONNFA_ADMIN_PASS}"
+exec httpd -DFOREGROUND
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]