Skip to content

Commit 3ef5726

Browse files
authored
Merge pull request #22 from OpenSemanticLab/main
fix: ensure temp dir exists
2 parents bd18823 + 7bc1670 commit 3ef5726

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mediawiki/config/run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ service ssh start
146146

147147
cd $MW_HOME
148148

149+
########## Create Temp Dir #########
150+
if [ ! -d "$MW_HOME/images/temp" ]; then
151+
echo " temp dir not existing, create it"
152+
mkdir "$MW_HOME/images/temp"
153+
chown www-data:www-data "$MW_HOME/images/temp"
154+
fi
155+
149156
########## Create LocalSettings ##########
150157

151158
# If LocalSettings was not mounted: File does not exist (first run) or is a symlink (after first run)

0 commit comments

Comments
 (0)