Skip to content

Commit

Permalink
fix: Convert SFTP_TCP_PORT environment variable to integer in restore…
Browse files Browse the repository at this point in the history
…-module
  • Loading branch information
stephdl committed Sep 2, 2024
1 parent 01003cd commit 92beff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/actions/restore-module/60systemd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 92beff3

Please sign in to comment.