From d4e3b1107263990d6c78f94413acccc02c0cb725 Mon Sep 17 00:00:00 2001 From: Dennis Date: Sat, 12 Jan 2019 18:20:39 +0100 Subject: [PATCH] Fixed an error in installation script Because of the forward slashes in the directory, sed did not work. This is solved in this commit by replacing the / separators with |. --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 59e5112..41dd0e0 100755 --- a/install.sh +++ b/install.sh @@ -110,10 +110,10 @@ read -p 'Matrix username: ' username read -p 'Matrix password: ' password read -p 'Super user: ' superuser -sed -e "s/\${server}/${server}/"\ - -e "s/\${username}/${username}/"\ - -e "s/\${password}/${password}/"\ - -e "s/\${superuser}/${superuser}/"\ +sed -e "s|\${server}|${server}|"\ + -e "s|\${username}|${username}|"\ + -e "s|\${password}|${password}|"\ + -e "s|\${superuser}|${superuser}|"\ $DIR/config.json.template > $DIR/config.json ################################################################# @@ -125,7 +125,7 @@ fi sudo useradd -r mchatbot -sed -e "s/\${DIR}/${DIR}/"\ +sed -e "s|\${DIR}|${DIR}|"\ $DIR/plugable-matrix-bot.service.template > $DIR/plugable-matrix-bot.service sudo mv $DIR/plugable-matrix-bot.service /etc/systemd/system/plugable-matrix-bot.service