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