MastodonStartpage/docker/files/install.sh
2020-05-11 23:32:01 +02:00

31 lines
613 B
Bash
Executable file

#!/bin/sh
cd /root
mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
mysqld_safe &
sleep 5
gzip -d mastostart_popolato.sql.gz
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