Upgrading pleroma background

This commit is contained in:
Bob Mottram 2017-04-17 12:36:56 +01:00
parent 631a35d62e
commit ecf69ddd7f
1 changed files with 6 additions and 0 deletions

View File

@ -273,6 +273,9 @@ function upgrade_pleroma {
if [ -f /var/www/${domain_name}/htdocs/static/logo.png ]; then if [ -f /var/www/${domain_name}/htdocs/static/logo.png ]; then
cp /var/www/${domain_name}/htdocs/static/logo.png /var/www/${domain_name}/htdocs/static/logo.png.old cp /var/www/${domain_name}/htdocs/static/logo.png /var/www/${domain_name}/htdocs/static/logo.png.old
fi fi
if [ -f /var/www/${domain_name}/htdocs/static/bg.jpg ]; then
cp /var/www/${domain_name}/htdocs/static/bg.jpg /var/www/${domain_name}/htdocs/static/bg.jpg.old
fi
if [ -f /var/www/${domain_name}/htdocs/static/config.json ]; then if [ -f /var/www/${domain_name}/htdocs/static/config.json ]; then
cp /var/www/${domain_name}/htdocs/static/config.json /var/www/${domain_name}/htdocs/static/config.json.old cp /var/www/${domain_name}/htdocs/static/config.json /var/www/${domain_name}/htdocs/static/config.json.old
fi fi
@ -284,6 +287,9 @@ function upgrade_pleroma {
if [ -f /var/www/${domain_name}/htdocs/static/logo.png.old ]; then if [ -f /var/www/${domain_name}/htdocs/static/logo.png.old ]; then
cp /var/www/${domain_name}/htdocs/static/logo.png.old /var/www/${domain_name}/htdocs/static/logo.png cp /var/www/${domain_name}/htdocs/static/logo.png.old /var/www/${domain_name}/htdocs/static/logo.png
fi fi
if [ -f /var/www/${domain_name}/htdocs/static/bg.jpg.old ]; then
cp /var/www/${domain_name}/htdocs/static/bg.jpg.old /var/www/${domain_name}/htdocs/static/bg.jpg
fi
if [ -f /var/www/${domain_name}/htdocs/index.php ]; then if [ -f /var/www/${domain_name}/htdocs/index.php ]; then
mv /var/www/${domain_name}/htdocs/index.php /var/www/${domain_name}/htdocs/index_qvitter.php mv /var/www/${domain_name}/htdocs/index.php /var/www/${domain_name}/htdocs/index_qvitter.php