diff --git a/imageroot/actions/restore-module/60systemd b/imageroot/actions/restore-module/60systemd index e6a81be..51c097a 100755 --- a/imageroot/actions/restore-module/60systemd +++ b/imageroot/actions/restore-module/60systemd @@ -60,7 +60,7 @@ subprocess.run(["systemctl", "--user", "restart", "nginx.service"]) # we test if the port is not in use with the previous module # sftpgo.service is a standalone service without require from other services -port = os.environ['SFTP_TCP_PORT'] +port = int(os.environ['SFTP_TCP_PORT']) if not is_port_in_use(port): start_service() else: