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

entrypoint.sh - github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9aa9d190cf85bb2f585bca733bd9866dc2eb8407 (plain)
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
#!/bin/bash

# SIGTERM-handler
term_handler() {
  service apache2 stop
  service mysql stop
  exit 0
}

set -x

service ssh start
service mysql start
service apache2 start


trap 'kill ${!}; term_handler' SIGTERM

/usr/games/cowsay -f dragon.cow "you might now login using username:admin password:admin"

# wait forever
while true
do
    tail -f /var/www/html/data/nextcloud.log & wait ${!}
done