[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-05-19 13:16:57 +03:00
parent 9c855ffd3b
commit af343a1dd1

@ -1202,7 +1202,7 @@ def http_server(argv):
subprocess.check_call( subprocess.check_call(
r''' r'''
mkdir -p $CONF_DIR; mkdir -p $CONF_DIR;
echo "server{listen 80; charset UTF-8; root $DATA_DIR; %s}" > echo "server{listen 80; charset UTF-8; root $DATA_DIR; %s}" > \
$CONF_DIR/default.conf; $CONF_DIR/default.conf;
exec nginx -c $CONF_DIR -p $DATA_DIR -g "daemon off;" exec nginx -c $CONF_DIR -p $DATA_DIR -g "daemon off;"
''', ''',