Docker fix
This commit is contained in:
@@ -49,8 +49,8 @@ init_config()
|
||||
## Write a default variables to dm config
|
||||
sed -i -e "/\[main\]/,/\[/ s/^#*user=.*/user=$UNAME/" \
|
||||
-e "/\[main\]/,/\[/ s/^#*group=.*/group=$UNAME/" \
|
||||
-e "/\[main\]/,/\[/ s/^#*workers=.*/workers=$(nproc)/" \
|
||||
-e "/\[module\/WebSocket\]/,/\[/ s/^#*enable=.*/enable=true/" \
|
||||
-e "/\[main\]/,/\[/ s/^#*workers=.*/workers=$(nproc)/" \
|
||||
-e "/\[module\/WebSocket\]/,/\[/ s/^#*enable=.*/enable=true/" \
|
||||
-e "/\[daemon\]/,/\[/ s/^#*daemon=.*/daemon=false/" \
|
||||
-e "/\[server\]/,/\[/ s/^#*listen=.*/listen=0.0.0.0/" \
|
||||
-e "/\[server\]/,/\[/ s/^#*port=.*/port=4999/" $CONF_FILES
|
||||
@@ -182,7 +182,7 @@ EOF
|
||||
generate_btc_key()
|
||||
{
|
||||
## Create new Bitcoin keys. If user address (_DM_BITCOIN var) is empty.
|
||||
_DM_BITCOIN="$(sed -n '/^[ \t]*\[module\]/,/\[/s/^#*[ \t]*address[ \t]*=[ \t]*//p' $CONF_FILES)"
|
||||
_DM_BITCOIN="$(sed -n '/^[ \t]*\[module\]/,/\[/s/^[ \t]*address[ \t]*=[ \t]*//p' $CONF_FILES)"
|
||||
|
||||
B=$(tput bold ; tput setaf 1)
|
||||
N=$(tput sgr0)
|
||||
|
||||
Reference in New Issue
Block a user