diff --git a/add_repo.sh b/add_repo.sh index 5b6cea6..b33810e 100644 --- a/add_repo.sh +++ b/add_repo.sh @@ -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 diff --git a/install.sh b/install.sh index c5f88b1..6973ce6 100755 --- a/install.sh +++ b/install.sh @@ -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' @@ -86,9 +89,3 @@ a2enmod cgid systemctl restart apache2 # TODO add user name - - - - - -