8 |
then |
then |
9 |
# print ip config |
# print ip config |
10 |
echo "Current ip settings:" |
echo "Current ip settings:" |
11 |
|
info "Current ip settings:" |
12 |
echo "$(ip addr)" |
echo "$(ip addr)" |
13 |
|
info "$(ip addr)" |
14 |
[ -w / ] || need_remount=1 |
[ -w / ] || need_remount=1 |
15 |
if [[ ${need_remount} = 1 ]] |
if [[ ${need_remount} = 1 ]] |
16 |
then |
then |
17 |
# remount /sysroot writeable |
# remount /sysroot writeable |
18 |
echo "Remount /sysroot writeable" |
echo "Remount /sysroot writeable" |
19 |
|
info "Remount /sysroot writeable" |
20 |
mount -oremount,rw /sysroot |
mount -oremount,rw /sysroot |
21 |
else |
else |
22 |
echo "Already a rw filesystem, remount not required" |
echo "Already a rw filesystem, remount not required" |
23 |
|
info "Already a rw filesystem, remount not required" |
24 |
fi |
fi |
25 |
# start mcored |
# start mcored |
26 |
echo "Starting mcore daemon" |
echo "Starting mcore daemon" |
27 |
|
info "Starting mcore daemon" |
28 |
export MROOT=/sysroot |
export MROOT=/sysroot |
29 |
. @@CONFDDIR@@/mcored |
. @@CONFDDIR@@/mcored |
30 |
@@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \ |
@@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \ |
34 |
then |
then |
35 |
# remount sysroot read-only |
# remount sysroot read-only |
36 |
echo "Remount /sysroot read-only" |
echo "Remount /sysroot read-only" |
37 |
|
info "Remount /sysroot read-only" |
38 |
mount -oremount,ro /sysroot |
mount -oremount,ro /sysroot |
39 |
fi |
fi |
40 |
fi |
fi |