Split out service management from the installation type.
This commit is contained in:
parent
ef748cf8e2
commit
647833580d
2 changed files with 3 additions and 3 deletions
|
@ -18,5 +18,4 @@ EOF
|
||||||
cat << EOF
|
cat << EOF
|
||||||
cd /var/wiki || exit 1
|
cd /var/wiki || exit 1
|
||||||
npm install
|
npm install
|
||||||
service start wikijs
|
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -48,11 +48,12 @@ fi
|
||||||
db_pass="$(cat "${__object:?}/parameter/database-password")"
|
db_pass="$(cat "${__object:?}/parameter/database-password")"
|
||||||
|
|
||||||
__package nodejs
|
__package nodejs
|
||||||
__package nghttp2-dev # Required for some reason, else a symbol is missing
|
|
||||||
__package npm
|
__package npm
|
||||||
__directory /var/wiki/
|
__directory /var/wiki/
|
||||||
|
|
||||||
|
# These things are Alpine-dependant.
|
||||||
__file /etc/init.d/wikijs --source "${__files:?}/files/wikijs-openrc"
|
__file /etc/init.d/wikijs --source "${__files:?}/files/wikijs-openrc"
|
||||||
require='__file/etc/init.d/wikijs' __start_on_boot wikijs
|
__package nghttp2-dev # Required for some reason, else a symbol is missing
|
||||||
|
|
||||||
mkdir -p "${__object:?}/files"
|
mkdir -p "${__object:?}/files"
|
||||||
"${__type:?}/files/config.yml.sh" "$db_pass" > "${__object:?}/files/config.yml"
|
"${__type:?}/files/config.yml.sh" "$db_pass" > "${__object:?}/files/config.yml"
|
||||||
|
|
Loading…
Reference in a new issue