init 296 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [[ ! -z "$USER_ID" ]]
then
    which usermod 2>&1 >/dev/null && usermod -u $USER_ID drupalizer
    service apache2 reload
fi

if [[ ! -z "$GROUP_ID" ]]
then
    which groupmod 2>&1 >/dev/null && groupmod -g $GROUP_ID drupalizer
    service apache2 reload
fi

exec /bin/sh -c "$*"