install.sh 611 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. cd /root
  3. mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
  4. mysqld_safe &
  5. sleep 5
  6. xz -d mastostart_popolato.sql.xz
  7. mysql -e 'source mastostart_popolato.sql'
  8. mysql -e 'source create_user.sql'
  9. rm /var/www/localhost/htdocs/index.html
  10. git clone https://git.lattuga.net/pongrebio/MastodonStartpage.git
  11. rsync -av MastodonStartpage/web/ /var/www/localhost/htdocs/
  12. cp /var/www/localhost/htdocs/mustard/sec/mustard.ini.sample /var/www/localhost/htdocs/mustard/sec/mustard.ini
  13. chown apache /etc/php7/msmtprc
  14. chmod go-r /etc/php7/msmtprc
  15. chown apache /var/log/apache2/
  16. exit 0