Skip to content

Commit 17df5aa

Browse files
committed
Added stop event in NET_TRIGGER
1 parent c8d78a5 commit 17df5aa

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
################################################################################
88

9-
VERSION="2.2.10"
9+
VERSION="2.2.11"
1010

1111
################################################################################
1212
# Common
@@ -1002,7 +1002,7 @@ helper()
10021002
{
10031003
cat <<EOF
10041004
Linux Deploy ${VERSION}
1005-
(c) 2012-2016 Anton Skshidlevsky, GPLv3
1005+
(c) 2012-2019 Anton Skshidlevsky, GPLv3
10061006
10071007
USAGE:
10081008
${0##*/} [OPTIONS] COMMAND ...

include/bootstrap/debian/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ cat <<EOF
8080
Architecture of Linux distribution, supported "armel", "armhf", "arm64", "i386" and "amd64".
8181
8282
--suite="${SUITE}"
83-
Version of Linux distribution, supported versions "wheezy", "jessie" and "stretch" (also can be used "stable", "testing" and "unstable").
83+
Version of Linux distribution, supported versions "jessie", "stretch" and "buster" (also can be used "stable", "testing", "unstable" or "oldstable").
8484
8585
--source-path="${SOURCE_PATH}"
8686
Installation source, can specify address of the repository or path to the rootfs archive.

include/core/net/deploy.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,16 @@ do_start()
3838
do_configure
3939
if [ -n "${NET_TRIGGER}" ]; then
4040
msg ":: Starting ${COMPONENT} ... "
41-
chroot_exec -u root "${NET_TRIGGER}"
41+
chroot_exec -u root "${NET_TRIGGER} start"
42+
fi
43+
return 0
44+
}
45+
46+
do_stop()
47+
{
48+
if [ -n "${NET_TRIGGER}" ]; then
49+
msg ":: Stopping ${COMPONENT} ... "
50+
chroot_exec -u root "${NET_TRIGGER} stop"
4251
fi
4352
return 0
4453
}

0 commit comments

Comments
 (0)