Remove any cached yarn files

This commit is contained in:
Bob Mottram 2017-04-14 10:41:48 +01:00
parent c7d31702b4
commit 39c126cba5
2 changed files with 8 additions and 0 deletions

View File

@ -248,6 +248,11 @@ function install_pleroma {
fi fi
sed -i 's|index.php|index_qvitter.php|g' $nginx_site sed -i 's|index.php|index_qvitter.php|g' $nginx_site
# remove any cached yarn files
if [ -d /root/.cache/yarn ]; then
rm -rf /root/.cache/yarn
fi
chown -R www-data:www-data /var/www/${pleroma_domain}/htdocs chown -R www-data:www-data /var/www/${pleroma_domain}/htdocs
} }

View File

@ -440,6 +440,9 @@ function disable_ctrl_alt_del {
function lockdown_permissions { function lockdown_permissions {
# All commands owned by root # All commands owned by root
if [ -d /root/.cache/yarn ]; then
rm -rf /root/.cache/yarn
fi
if [ -d /usr/local/share/.cache/yarn ]; then if [ -d /usr/local/share/.cache/yarn ]; then
rm -rf /usr/local/share/.cache/yarn rm -rf /usr/local/share/.cache/yarn
fi fi