Page MenuHomePhabricator

Script creation of avatar and award directories
Open, Needs TriagePublic

Description

Part of the installation process for SocialProfile is to copy the default image directories for avatars and awards (for some reason that I'm sure @jack can provide)

This requires various rather standardised commands with a variety of permission requirements.

We ought to script this to make this process easier and foolproof.

lewiscawte created this task.EditedMar 30 2017, 9:20 PM

Current commands:

cp -R /var/www/live/w/extensions/SocialProfile/avatars/ /var/www/images/TARGET_WIKI_IMAGES_DIR_NAME/
mkdir /var/www/images/TARGET_WIKI_IMAGES_DIR_NAME/awards/
sudo chown -hR www-data:www-data /var/www/images/TARGET_WIKI_IMAGES_DIR_NAME/avatars
sudo chown -hR www-data:www-data /var/www/images/TARGET_WIKI_IMAGES_DIR_NAME/awards

Pathing could do with avoiding symlinks on the new server.