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