working i think
This commit is contained in:
9
buildfiles/auto_config.sh
Normal file
9
buildfiles/auto_config.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
cd /root/synapse
|
||||
source /root/env/bin/activate
|
||||
python -m synapse.app.homeserver \
|
||||
--server-name $SERVERNAME \
|
||||
--config-path homeserver.yaml \
|
||||
--generate-config \
|
||||
--report-stats=$REPORTSTATUS
|
||||
touch /root/init/init
|
9
buildfiles/start_services.sh
Normal file
9
buildfiles/start_services.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
#auto configs
|
||||
if ! [ -f /root/init/init ]
|
||||
then /root/auto_config.sh
|
||||
fi
|
||||
cd /root/synapse
|
||||
source /root/env/bin/activate
|
||||
synctl start --no-daemonize
|
Reference in New Issue
Block a user