mkjail.sh

Check-in [7ce5612c9e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Ensure new jails get updated automatically upon creation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:7ce5612c9e09cfacbbb98aa982bb21a46c68a647d43fa0ef28cad32d86b9ff34
User & Date: feld 2018-10-31 16:33:42
Context
2019-03-08
15:38
Update README check-in: 712d436f0c user: feld tags: master, trunk
2018-10-31
16:33
Ensure new jails get updated automatically upon creation check-in: 7ce5612c9e user: feld tags: master, trunk
2018-10-18
19:00
Upgrade -a should skip if the jail has the same version installed check-in: e69a7bcc05 user: feld tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/share/mkjail/create.sh.

92
93
94
95
96
97
98


99
100
101
102
103
104
105
done

if [ x"${fflag}" = x1 ] ; then
    # put in default configs:
    echo "Copying in our configs..."
    cp -a /var/db/mkjail/flavours/${FLAVOUR}/ ${JAILROOT}/${JAILNAME}
fi


}

_docs() {
# Give instructions
cat <<DOCS

Now put something like the following in /etc/jail.conf:







>
>







92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
done

if [ x"${fflag}" = x1 ] ; then
    # put in default configs:
    echo "Copying in our configs..."
    cp -a /var/db/mkjail/flavours/${FLAVOUR}/ ${JAILROOT}/${JAILNAME}
fi

${SCRIPTPREFIX}/update.sh update -j ${JAILNAME}
}

_docs() {
# Give instructions
cat <<DOCS

Now put something like the following in /etc/jail.conf: