mirror of
https://github.com/friendica/friendica
synced 2024-06-18 09:37:55 +02:00
17 lines
516 B
Bash
17 lines
516 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# 9p write files as 'vagrant:vagrant' always.
|
||
|
# let's run apache as 'vagrant' user to get around write permissions issues
|
||
|
sed -i 's/www-data/vagrant/g' /etc/apache2/envvars
|
||
|
systemctl restart apache2
|
||
|
|
||
|
# I can't find a way to set static ip with libvirt, so configure friendica
|
||
|
# with current ip
|
||
|
MYIP=$(hostname -I | tr -d ' ')
|
||
|
sed -i "s|'url' =>.*|'url' => 'http://$MYIP',|" /var/www/config/local.config.php
|
||
|
echo "########################"
|
||
|
echo
|
||
|
echo " http://$MYIP/"
|
||
|
echo
|
||
|
echo "########################"
|