openvpn: Make frontpage shortcut appear after an upgrade

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-02-28 15:53:59 -08:00 committed by James Valleroy
parent 117c3d7507
commit b8d4b55c0a
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -79,6 +79,9 @@ def setup(helper, old_version=None):
ports=['openvpn'], is_external=True,
enable=enable, disable=disable)
if service.is_enabled() and is_setup():
add_shortcut()
def add_shortcut():
"""Add shortcut in frontpage."""