update README

This commit is contained in:
rnsrk 2021-09-28 14:39:26 +02:00
parent d62fd15827
commit e2b0ed660e
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
# INSTALL WISSKI SCRIPT # INSTALL WISSKI SCRIPT
This script installs a LAMP-Stack (Apache2, PHP, latest Mariadb) on your Ubuntu 20.04 machine and everything you need to start an install of the latest Drupal version (composer and drush). You can choose between a local development or production environment and you have the possibility to activate https support. WissKI and all necessary modules/ libraries are downloaded and you have to activate them after your Drupal installation. This script installs a LAMP-Stack (Apache2, PHP, Mariadb) or complete missing parts on your Ubuntu 20.04 (or higher) and everything you need to start an install of the latest Drupal version (composer and drush). You can choose between a local development or production environment and you have the possibility to activate ssl support (manually or with certbot). WissKI and all necessary modules/ libraries could be downloaded. Just run the Drupal installer after the script has finished and activate required WissKI modules. Please keep in mind that WissKI needs a triple store to work.
Just run `sudo ./install_wisski.bash` in your console. Just run `sudo ./install_wisski.bash` in your console.
more information at [WissKI](wisskieu.nasarek.org)

View file

@ -183,7 +183,7 @@ fi
for REQUIREDPKG in "${DEPENDENCIES[@]}" for REQUIREDPKG in "${DEPENDENCIES[@]}"
do do
if [[ "$(dpkg-query -W --showformat='${Status}\n' $REQUIREDPKG)" == "install ok installed" ]]; then if [[ "$(dpkg-query -W --showformat='${Status}\n' $REQUIREDPKG)" == "install ok installed" ]]; then
echo -e "${GREEN}${REQUIREDPKG} is installed." echo -e "${GREEN}${REQUIREDPKG} is installed.${RED}"
delete=(${REQUIREDPKG}) delete=(${REQUIREDPKG})
for target in "${delete[@]}"; do for target in "${delete[@]}"; do
for i in "${!DEPENDENCIES[@]}"; do for i in "${!DEPENDENCIES[@]}"; do
@ -412,9 +412,9 @@ while true; do
echo -e "${GREEN}Write config to \"/etc/apache2/sites-available/${WEBSITENAME}\"" echo -e "${GREEN}Write config to \"/etc/apache2/sites-available/${WEBSITENAME}\""
echo "${SITECONFIG}" > /etc/apache2/sites-available/${WEBSITENAME}.conf echo "${SITECONFIG}" > /etc/apache2/sites-available/${WEBSITENAME}.conf
echo -e "${GREEN}Enable site ${WEBSITENAME}${NC}" echo -e "${GREEN}Enable site ${WEBSITENAME}${NC}"
a2ensite ${WEBSITENAME} a2ensite ${WEBSITENAME} &> /dev/null
echo -e "${GREEN}Restart apache server${NC}" echo -e "${GREEN}Restart apache server${NC}"
systemctl restart apache2 systemctl restart apache2 &> /dev/null
echo "a2dissite ${WEBSITENAME}" >> remove_${WEBSITENAME}_configs.bash echo "a2dissite ${WEBSITENAME}" >> remove_${WEBSITENAME}_configs.bash
echo "rm /etc/apache2/sites-available/${WEBSITENAME}.conf" >> remove_${WEBSITENAME}_configs.bash echo "rm /etc/apache2/sites-available/${WEBSITENAME}.conf" >> remove_${WEBSITENAME}_configs.bash
break;; break;;