forked from camicroscope/ViewerDockerContainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·33 lines (25 loc) · 766 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#nohup /usr/bin/mongod &
#nohup nodejs bin/www &
#cd ../bindaas/bin
#sh startup.sh &
composite_dir="/var/www/html/composite_results"
if [ ! -d "$composite_dir" ]; then
mkdir "$composite_dir"
fi
# Tile Overlay Directory and Symlink
overlays_dir="/data/images/overlays"
if [ ! -d "$overlays_dir" ]; then
mkdir "$overlays_dir"
fi
ln -sTf "$overlays_dir" /var/www/html/overlays
rm -f /var/run/apache2.pid
service apache2 start
#restart apache2 server
service apache2 restart
htpasswd -bc /etc/apache2/.htpasswd admin quip2017
chmod 777 /etc/apache2/.htpasswd
/root/src/iipsrv/src/iipsrv.fcgi --bind 127.0.0.1:9001 &
apikey=$(python /var/www/html/createUser.py viewer@quip)
echo "$apikey" >> /var/www/html/api.key
while true; do sleep 1000; done