Use subshells correctly

This commit is contained in:
Johannes Zellner
2018-06-06 12:02:24 +02:00
parent 39059c627b
commit df1ac43f40

View File

@@ -99,7 +99,7 @@ if [[ "$(cloudron-syslog --version)" != "1.0.0" ]]; then
rm -rf ${CLOUDRON_SYSLOG_DIR}
mkdir -p ${CLOUDRON_SYSLOG_DIR}
$curl -sL https://git.cloudron.io/cloudron/cloudron-syslog/-/archive/master/cloudron-syslog-master.tar.gz | tar zxvf - --strip-components=1 -C ${CLOUDRON_SYSLOG_DIR}
$(cd ${CLOUDRON_SYSLOG_DIR} && npm install --unsafe-perm) # need --unsafe-perm since we run as root and npm drops privileges
(cd ${CLOUDRON_SYSLOG_DIR} && npm install --unsafe-perm) # need --unsafe-perm since we run as root and npm drops privileges
fi
if ! id "${USER}" 2>/dev/null; then