Skip to content

Commit

Permalink
configure-module: use agent lib to restart webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Amygos committed Nov 28, 2022
1 parent 3109076 commit bff5852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/actions/configure-module/20config
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ if data["hostname"] != os.getenv("WEBTOP_HOSTNAME"):
restart_webapp = True

if restart_webapp:
os.system("systemctl --user restart webapp")
agent.run_helper("systemctl", "--user", "restart", "webapp").check_returncode()

0 comments on commit bff5852

Please sign in to comment.