#!/bin/bash
if [ ! -f /data/persistent/.root_pw_set ]; then
	/data/set_root_pw.sh
fi

exec supervisord -n -c /etc/supervisor/supervisord.conf

#!/bin/bash
if [ ! -f /data/persistent/.root_pw_set ]; then
	/data/set_root_pw.sh
fi



if [  "$SSH_SERVER" == "false"  ] || [  "$SSH_SERVER" == "FALSE"  ] || [  "$SSH_SERVER" == "0"  ]; then
    sed -i 's/autostart=true/autostart=false/g' /etc/supervisor/conf.d/sshd.conf
fi


exec supervisord -n -c /etc/supervisor/supervisord.conf

ADD feature to disable SSH
ADD feature to disable SSH
