Skip to content

Commit

Permalink
49/Problem with setup
Browse files Browse the repository at this point in the history
bug: mkdirs for upload paths
  • Loading branch information
mhzawadi committed Sep 21, 2024
1 parent cf6e183 commit e24e00f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 174 deletions.
159 changes: 0 additions & 159 deletions .drone.yml

This file was deleted.

15 changes: 0 additions & 15 deletions buildx.sh

This file was deleted.

5 changes: 5 additions & 0 deletions setup/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ if [ -n "$SETUP_COMPLETED" ]; then
sed -i -e "s/SETUP_COMPLETED=.*/SETUP_COMPLETED=${SETUP_COMPLETED}/" /var/www/html/ipconfig.php
fi

[[ ! -d "/var/www/html/uploads/temp/mpdf/" ]] && mkdir -p "/var/www/html/uploads/temp/mpdf/"
[[ ! -d "/var/www/html/uploads/customer_files/" ]] && mkdir -p "/var/www/html/uploads/customer_files/"
[[ ! -d "/var/www/html/uploads/archive/" ]] && mkdir -p "/var/www/html/uploads/archive/"
[[ ! -d "/var/www/html/application/logs/" ]] && mkdir -p "/var/www/html/application/logs/"

chown nobody:nginx /var/www/html/ipconfig.php;
chown -R nobody:nginx /var/www/html/uploads;
chown -R nobody:nginx /var/www/html/assets/core/css;
Expand Down

0 comments on commit e24e00f

Please sign in to comment.