29 lines
501 B
Plaintext
Executable File
29 lines
501 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Ushahidi docker container"
|
|
|
|
depend() {
|
|
need docker net mariadb
|
|
use dns logger netmount postfix
|
|
}
|
|
|
|
start_pre() {
|
|
/srv/ushahidi/update-ip.sh
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name ushahidi \
|
|
-h ushahidi \
|
|
--link mariadb \
|
|
--link postfix \
|
|
-p 127.0.0.1:8014:8014 \
|
|
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
|
|
-v /srv/ushahidi/data:/srv/ushahidi/platform/application/media/uploads \
|
|
ushahidi
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop ushahidi
|
|
}
|