cp: cannot create regular file '/overleaf-toolkit/config/nginx/': Not a directory
Steps to Reproduce
$ git clone https://github.com/overleaf/toolkit.git overleaf-toolkit $ cd overleaf-toolkit/bin $ ./init --help
Usage: bin/init [OPTION]
Initialises local configuration files in the 'config/' directory
--help display this help and exit --tls Initialises local configuration with NGINX config, or adds NGINX config to an existing local configuration $ $ ./init --tls Generate example self-signed TLS cert cp: cannot create regular file '/home/user/GIT-REPROs/overleaf-toolkit/config/nginx/': Not a directory Invalid return value 0 for stream protocol Invalid return value 0 for stream protocol [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
Generate example self-signed TLS cert cp: cannot create regular file '/home/user/GIT-REPROs/overleaf-toolkit/config/nginx/': Not a directory
Analysis
the bin/init script don't handle the current directory correct.