Correction de syntaxe

This commit is contained in:
2018-05-07 11:41:18 +02:00
parent 99d3d4e930
commit 1251cef00e
2 changed files with 10 additions and 9 deletions

View File

@@ -17,15 +17,13 @@ fi
if true; then if true; then
adduser --disabled-password --disabled-login --gecos "" mastodon || exit 3 adduser --disabled-password --disabled-login --gecos "" mastodon || exit 3
chmod +r Install*.sh;chmod +x Install*.sh chmod +r Install*.sh;chmod +x Install*.sh || exit 4
cp Install-Mastodon-Phase3.sh Install-Mastodon-Phase4.sh /home/mastodon || exit 4
chown -R mastodon /home/mastodon || exit 5
chmod +x /home/mastodon/Install*.sh
if [ -e ./Install-Mastodon-CreatePSQL-User.sh ] if [ -e ./Install-Mastodon-CreatePSQL-User.sh ]
then then
# Creation de l'utilisateur Postgresql postgres # Creation de l'utilisateur Postgresql postgres
cp -f Install-Mastodon-CreatePSQL-User.sh /tmp || exit 6 cp -f Install-Mastodon-CreatePSQL-User.sh /tmp || exit 5
chmod 644 /tmp/Install*.sh chmod 644 /tmp/Install*.sh || exit 6
chmod +x /tmp/Install*.sh || exit 7 chmod +x /tmp/Install*.sh || exit 7
su - postgres -c /tmp/Install-Mastodon-CreatePSQL-User.sh || exit 8 su - postgres -c /tmp/Install-Mastodon-CreatePSQL-User.sh || exit 8
rm -f /tmp/Install*.sh rm -f /tmp/Install*.sh
@@ -46,6 +44,9 @@ if true; then
fi fi
if true; then if true; then
su - mastodon -c ./Install-Mastodon-Phase3.sh || exit 18 cp Install-Mastodon-Phase3.sh Install-Mastodon-Phase4.sh /home/mastodon || exit 18
su - mastodon -c ./Install-Mastodon-Phase4.sh || exit 19 chown -R mastodon /home/mastodon || exit 19
chmod +x /home/mastodon/Install*.sh
su - mastodon -c ./Install-Mastodon-Phase3.sh || exit 20
su - mastodon -c ./Install-Mastodon-Phase4.sh || exit 21
fi fi

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# https://anystack.xyz/how-to-install-mastodon-ubuntu/ # https://anystack.xyz/how-to-install-mastodon-ubuntu/
echo Phase 3: Preparation de l'environnement echo "Phase 3: Preparation de l\'environnement"
git clone https://github.com/rbenv/rbenv.git ~/.rbenv || exit 101 git clone https://github.com/rbenv/rbenv.git ~/.rbenv || exit 101
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc