Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fjail @ 222:16238e9032a9
Skip configuring a timezone when there already exists such a file /etc/localtime
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Wed, 31 Aug 2022 12:41:18 +0200 |
| parents | f62f8ec6a19b |
| children | dce9ba905c32 |
comparison
equal
deleted
inserted
replaced
| 221:f62f8ec6a19b | 222:16238e9032a9 |
|---|---|
| 351 sysrc -R "${_mp}" clear_tmp_X=NO | 351 sysrc -R "${_mp}" clear_tmp_X=NO |
| 352 sysrc -R "${_mp}" syslogd_flags=-ss | 352 sysrc -R "${_mp}" syslogd_flags=-ss |
| 353 sysrc -R "${_mp}" bsdstats_enable=NO # no automatic BSD stats when booting | 353 sysrc -R "${_mp}" bsdstats_enable=NO # no automatic BSD stats when booting |
| 354 | 354 |
| 355 # Timezone to CET | 355 # Timezone to CET |
| 356 ln -s ../usr/share/zoneinfo/Europe/Berlin "${_mp}/etc/localtime" | 356 if [ ! -f "${_mp}/etc/localtime" ]; then |
| 357 echo "Setting timezone to Europe/Berlin" | |
| 358 ln -s ../usr/share/zoneinfo/Europe/Berlin "${_mp}/etc/localtime" | |
| 359 else | |
| 360 echo "WARNING: \"${_mp}/etc/localtime\" exists already -- not changed" | |
| 361 fi | |
| 357 | 362 |
| 358 # XXX FIXME What about hostid in vnet jails (see /etc/rc.d/hostid and /etc/rc.d/hostid_save) | 363 # XXX FIXME What about hostid in vnet jails (see /etc/rc.d/hostid and /etc/rc.d/hostid_save) |
| 359 } | 364 } |
| 360 | 365 |
| 361 | 366 |
