mediawiki/scripts/ensure-permissions.sh
2021-01-12 08:49:20 +01:00

9 lines
273 B
Bash

#!/bin/bash
set -euo pipefail
# Copy the htaccess file
mkdir -p /var/www/localstore/images
mkdir -p /var/www/localstore/smwconfig
cp /var/www/html/images/* /var/www/localstore/images
chown -R www-data:www-data /var/www/localstore
chown -R www-data:www-data /var/www/data