Skip to content

Commit dfbde34

Browse files
committed
Release 1.17.110 - See CHANGELOG.md
1 parent 31b6d5a commit dfbde34

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed

Diff for: CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 1.17.110 2025-03-06 <dave at tiredofit dot ca>
2+
3+
### Added
4+
- Add DB_SSL (default FALSE) environment variable to allow accomodate for MariaDB client defaulting to want to connect to SSL enabled host
5+
6+
### Changed
7+
- Rework SKIP_STORAGE_PERMISSIONS check introduced in last release to a TRUE/FALSE option
8+
9+
110
## 1.17.109 2025-03-04 <glyras@github>
211

312
### Added

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,12 @@ Be sure to view the following repositories to understand all the customizable op
135135
| `DB_NAME` | Database name e.g. `freescout` | | x |
136136
| `DB_USER` | Username for above Database e.g. `freescout` | | x |
137137
| `DB_PASS` | Password for above Database e.g. `password` | | x |
138+
| `DB_SSL` | Used to enable SSL support for MySQL and MariaDB databases | `FALSE` | |
138139
| `DISPLAY_ERRORS` | Display Errors on Website | `FALSE` | |
139140
| `ENABLE_AUTO_UPDATE` | If coming from an earlier version of image, automatically update it to latest Freescout release | `TRUE` | |
140141
| `SETUP_TYPE` | Automatically edit configuration after first bootup `AUTO` or `MANUAL` | `AUTO` | |
141142
| `SITE_URL` | The url your site listens on example `https://freescout.example.com` | | |
142-
| `SKIP_STORAGE_PERMISSIONS` | Skip applying permission to storage path, e.g. for instances involving large storage paths | | |
143+
| `SKIP_STORAGE_PERMISSIONS` | Skip applying permission to storage path, e.g. for instances involving large storage paths | `FALSE` | |
143144

144145

145146
### Networking

Diff for: install/assets/defaults/30-freescout

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ APP_X_FRAME_OPTIONS=${APP_X_FRAME_OPTIONS:-"TRUE"}
88
DB_PGSQL_SSL_MODE=${DB_PGSQL_SSL_MODE:-"prefer"}
99
DB_PORT=${DB_PORT:-3306}
1010
DB_TYPE=${DB_TYPE:-"mysql"}
11+
DB_SSL=${DB_SSL:-"FALSE"}
1112
ENABLE_AUTO_UPDATE=${ENABLE_AUTO_UPDATE:-"TRUE"}
12-
SETUP_TYPE=${SETUP_TYPE:-"AUTO"}
13+
SETUP_TYPE=${SETUP_TYPE:-"AUTO"}
14+
SKIP_STORAGE_PERMISSIONS=${SKIP_STORAGE_PERMISSIONS:-"FALSE"}

Diff for: install/etc/cont-init.d/30-freescout

+13-4
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,18 @@ silent sudo -u "${NGINX_USER}" php artisan storage:link
243243

244244
### Check to see if DB is populated
245245
if [ "${DB_TYPE}" = "mysql" ]; then
246-
mysql -u $DB_USER -p$DB_PASS -h$DB_HOST -P$DB_PORT -e "use "$DB_NAME"; SELECT * FROM users;" > /dev/null 2>&1
246+
case "${DB_SSL,,}" in
247+
true )
248+
_mysql_ssl="--ssl"
249+
;;
250+
false )
251+
_mysql_ssl="--skip-ssl"
252+
;;
253+
esac
254+
mysql ${_mysql_ssl} -u$DB_USER -p$DB_PASS -h$DB_HOST -P$DB_PORT -e "use "$DB_NAME"; SELECT * FROM users;" > /dev/null 2>&1
247255
elif [ "${DB_TYPE,,}" = "pgsql" ] || [ "${DB_TYPE,,}" = "postgres" ]; then
248-
export PGPASSWORD="${DB_PASS}"
249-
psql --dbname=postgresql://$DB_USER@$DB_HOST:$DB_PORT/$DB_NAME -c "SELECT * FROM users;" > /dev/null 2>&1
256+
export PGPASSWORD="${DB_PASS}"
257+
psql --dbname=postgresql://$DB_USER@$DB_HOST:$DB_PORT/$DB_NAME -c "SELECT * FROM users;" > /dev/null 2>&1
250258
fi
251259

252260
if [ $? -gt 0 ]; then
@@ -272,10 +280,11 @@ fi
272280
cd "${NGINX_WEBROOT}"
273281
chown -R "${NGINX_USER}":"${NGINX_GROUP}" bootstrap/cache public/css/builds public/js/builds
274282
chmod -R ug+rwx bootstrap/cache public/css/builds public/js/builds
275-
if [ -z ${SKIP_STORAGE_PERMISSIONS} ]; then
283+
if var_false "${SKIP_STORAGE_PERMISSIONS}" ; then
276284
chown -R "${NGINX_USER}":"${NGINX_GROUP}" storage
277285
chmod -R ug+rwx storage
278286
fi
287+
279288
chown -R "${NGINX_USER}":"${NGINX_GROUP}" "${NGINX_WEBROOT}"
280289
chmod ug+rwx "${NGINX_WEBROOT}"
281290

0 commit comments

Comments
 (0)