File tree Expand file tree Collapse file tree 12 files changed +12
-12
lines changed
samson-deployment/latest/conf/bin
provisioning/base/general/bin Expand file tree Collapse file tree 12 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ TASK="$(echo $1| sed 's/[^-_a-zA-Z0-9]*//g')"
1313
1414source /opt/docker/bin/config.sh
1515
16- if [ " $( /usr/bin/whoami ) " == " root " ]; then
16+ if [[ " $UID " -eq 0 ] ]; then
1717 # Only run provision if user is root
1818
1919 if [ " $TASK " == " supervisord" -o " $TASK " == " noop" ]; then
You can’t perform that action at this time.
0 commit comments