andi34 / photobooth

A Photobooth web interface for Linux and Windows.
MIT License
71 stars 39 forks source link

[FEATURE]: Disable reboot for silent mode in enable-usb-sync.sh #450

Closed CWempe closed 2 years ago

CWempe commented 2 years ago

Is your feature request related to a problem?

No

Description

I am setting up my system via Ansible.

So I am using the silent mode (--silent) for the enable-usb-sync.sh script.

But this results in an error for ansible, because the ssh connection is lost "during" the execution of the script.

image

Describe the solution you'd like

A solution could be a new parameter to disable the automatic reboot. (opt out) Or a parameter to enable reboot in silent mode (opt in)

One could argue the silent mode is intended to be run from a script. Meaning the user could manually add a reboot command in the script if necessary. 😉

Describe alternatives you've considered

I guess I will alter the script via Ansible to disable the reboot as a workaround. Then execute the reboot via Ansible.

Additional context

No response