added pre and post installation directory and implemented one for ntp
This commit is contained in:
21
prepost.d/ntp.sh
Normal file
21
prepost.d/ntp.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# NTP package pre and post configuration
|
||||
# This file is part of the init.sh project
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
preupgd_ntp()
|
||||
{
|
||||
svc_stop ntp
|
||||
}
|
||||
export -f preupgd_ntp
|
||||
|
||||
postupgd_ntp()
|
||||
{
|
||||
svc_start ntp
|
||||
}
|
||||
export -f postupgd_ntp
|
||||
Reference in New Issue
Block a user