Welcome to mirror list, hosted at ThFree Co, Russian Federation.

run.sh « docker « packaging - github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3e1d4b633202ce2ebc2ac0efe9db30f246b578f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash -e
set -e

web_dir=/var/lib/spectrum2/media

if [ -d "$web_dir" ]; then
  web_dir_owner="$(stat -c %u "$web_dir")"
  if [[ "$(id -u www-data)" != "$web_dir_owner" ]]; then
      usermod -u "$web_dir_owner" www-data
  fi
fi

echo "Trying to start Spectrum 2 instances."
echo "You should mount the directory with configuration files to /etc/spectrum2/transports/."
echo "Check the http://spectrum.im/documentation for more information."
spectrum2_manager start
spectrum2_manager server &
tail -f /var/log/spectrum2/*/* 2>/dev/null