Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xargs: unmatched double quote; by default quotes are special to xargs unless you use the -0 option /dev/fd/63: line 40: unexpected EOF while looking for matching `"' #144

Open
aradonweb opened this issue Feb 15, 2023 · 3 comments
Assignees

Comments

@aradonweb
Copy link

hello,
First of all I say wow!! amazing job!!!
now i fail to install,

i cloned the repo,
and copied the .env.dist to .env edited it a little bit
after i run:
sudo ./installl.sh
but i get:
xargs: unmatched double quote; by default quotes are special to xargs unless you use the -0 option /dev/fd/63: line 40: unexpected EOF while looking for matching "'`

i am on:
OS: ubuntu 22.04.1 LTS (Jammy Jellyfish)
Shell: bash 5.1.16

@aradonweb
Copy link
Author

i found what break it,
in the .env file in RSA_PUB_KEY=
i added a public key and the .env RSA_PUB_KEY look like this:
RSA_PUB_KEY=sh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDMh+TeSOd/iTYgAbO0r ...6ZWEPvow== [email protected]

in scripts/utils.sh line 27

unset $(grep -v '^#' "${ENVFILE}" | grep -v '^\[' | sed -E 's/(.*)=.*/\1/' | xargs)

the regex: s/(.*)=.*/\1/ need to be updated

i added:
echo $(grep -v '^#' "${ENVFILE}" | grep -v '^\[' | sed -E 's/(.*)=.*/\1/') before line 27
and runit
and i get the output:
UTO_INSTALL FORCE_INSTALL AUTO_REMOVE FORCE_REMOVE DRYRUN FIX_BROKEN_INSTALL ENABLE_SWAP LOGGING LOG_FILE BUILD_DIR ENVIRONMENT SERVER_HOSTNAME SERVER_IP TIMEZONE LEMPER_USERNAME LEMPER_PASSWORD LEMPER_ADMIN_EMAIL SSH_PORT SSH_ROOT_LOGIN SSH_PASSWORDLESS RSA_PUB_KEY=sh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDMh+TeSOd/iTYgAbO0r ...6ZWEPvow= INSTALL_NGINX NGINX_INSTALLER NGINX_VERSION NGINX_WITH_CUSTOMSSL NGINX_CUSTOMSSL_VERSION NGINX_WITH_PCRE NGINX_PCRE_VERSION NGINX_DYNAMIC_MODULE NGINX_EXTRA_MODULES NGX_HTTP_AUTH_PAM NGX_HTTP_BROTLI NGX_HTTP_CACHE_PURGE NGX_HTTP_DAV_EXT NGX_HTTP_ECHO NGX_HTTP_FANCYINDEX NGX_HTTP_GEOIP NGX_HTTP_GEOIP2 GEOLITE2_LICENSE_KEY NGX_HTTP_HEADERS_MORE NGX_HTTP_IMAGE_FILTER NGX_HTTP_MEMCACHED NGX_HTTP_NAXSI NGX_HTTP_NDK NGX_HTTP_JS NGX_HTTP_LUA LUA_JIT_VERSION LUA_NGINX_MODULE_VERSION LUA_RESTY_CORE_VERSION LUA_RESTY_LRUCACHE_VERSION NGX_HTTP_PASSENGER NGX_HTTP_REDIS2 NGX_HTTP_SUBS_FILTER NGX_HTTP_UPSTREAM_FAIR NGX_HTTP_VTS NGX_HTTP_XSLT_FILTER NGX_MAIL NGX_NCHAN NGX_PAGESPEED_VERSION NGX_PAGESPEED NGX_RTMP NGX_STREAM NGINX_RATE_LIMITING NGINX_RATE_LIMIT_REQUESTS INSTALL_PHP PHP_VERSIONS PHP_EXTENSIONS DEFAULT_PHP_VERSION INSTALL_PHP_LOADER PHP_LOADER INSTALL_PHP_PHALCON PHP_PHALCON_INSTALLER PHP_PHALCON_VERSION INSTALL_PHP_ZEPHIR PHP_ZEPHIR_VERSION INSTALL_PHP_COMPOSER INSTALL_IMAGEMAGICK IMAGEMAGICK_INSTALLER IMAGEMAGICK_VERSION INSTALL_MYSQL MYSQL_SERVER MYSQL_VERSION MYSQL_SECURE_INSTALL MYSQL_ROOT_PASSWORD MYSQL_ALLOW_REMOTE MARIABACKUP_USER MARIABACKUP_PASS INSTALL_MEMCACHED MEMCACHED_INSTALLER MEMCACHED_VERSION MEMCACHED_SASL MEMCACHED_USERNAME MEMCACHED_PASSWORD INSTALL_MONGODB MONGODB_VERSION MONGODB_ADMIN_USER MONGODB_ADMIN_PASSWORD INSTALL_REDIS REDIS_INSTALLER REDIS_VERSION REDIS_REQUIRE_PASSWORD REDIS_PASSWORD INSTALL_FTP_SERVER FTP_SERVER_INSTALLER FTP_SERVER_NAME FTP_SERVER_VERSION FTP_SSL_ENABLE FTP_PASV_MODE FTP_MIN_PORT FTP_MAX_PORT INSTALL_MAILER INSTALL_SPFDKIM SENDER_DOMAIN INSTALL_CERTBOT HOSTNAME_CERT_PATH KEY_HASH_LENGTH INSTALL_FW FW_CONFIGURATOR INSTALL_FAIL2BAN FAIL2BAN_INSTALLER FAIL2BAN_VERSION

@joglomedia
Copy link
Owner

hello, First of all I say wow!! amazing job!!! now i fail to install,

i cloned the repo, and copied the .env.dist to .env edited it a little bit after i run: sudo ./installl.sh but i get: xargs: unmatched double quote; by default quotes are special to xargs unless you use the -0 option /dev/fd/63: line 40: unexpected EOF while looking for matching "'`

i am on: OS: ubuntu 22.04.1 LTS (Jammy Jellyfish) Shell: bash 5.1.16

Hi @aradonweb
It seems related to this issue #42
which type of RSA key you are using 2048 or 4096 bits?

@aradonweb
Copy link
Author

4096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants