Skip to content

Commit

Permalink
Messages d'étapes sur le script d'install
Browse files Browse the repository at this point in the history
+ Desactivation temporaire de la copie du .conf de add_repo
  • Loading branch information
YoussefCYTECH committed Aug 2, 2021
1 parent 717fbf9 commit c129258
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
15 changes: 8 additions & 7 deletions add_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ if [ -e "$src/www" ]; then
fi

# installs virtualhosts
if [ -e "$src"/sites-available ]; then
cp -vra "$src"/sites-available/. $a2/sites-available
for f in "$src"/sites-available/*.conf; do
a2ensite "$(basename "$f")"
done
systemctl reload apache2
fi
#if [ -e "$src"/sites-available ]; then
# cp -vra "$src"/sites-available/. $a2/sites-available
# for f in "$src"/sites-available/*.conf; do
# a2ensite "$(basename "$f")"
# done
# systemctl reload apache2
# fi

# TODO bash 3 +
# TODO add installation of locale folder
# TODO add installation of the cog's requirements.txt
13 changes: 5 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ if [ ! -e $install_folder/.bot_token ]; then
echo
exit
fi
if [ -e $install_folder/.bot_token ]; then
echo '## Token déjà saisi'
exit
fi


echo 'Installation du bot terminée.'
echo '## Installation du bot terminée.'
echo

echo '## Begin webserver installation'
Expand All @@ -86,9 +89,3 @@ a2enmod cgid
systemctl restart apache2

# TODO add user name






0 comments on commit c129258

Please sign in to comment.