Skip to content

Commit

Permalink
Release 3.5.3 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Apr 14, 2023
1 parent 2838c34 commit 539441e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 3.5.3 2023-04-14 <dave at tiredofit dot ca>

### Changed
- Revert 3.5.2 and start doing 5 character checks on ADMIN_USER
- Fix a problem with CRON_INTERVAL not being used


## 3.5.2 2023-04-14 <dave at tiredofit dot ca>

### Added
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ Builds of the image are available on [Docker Hub](https://hub.docker.com/r/tired
docker pull docker.io/tiredofdit/osticket:(imagetag)
```

Builds of the image are also available on the [Github Container Registry](https://github.com/tiredofit/docker-osticket/pkgs/container/docker-osticket)
Builds of the image are also available on the [Github Container Registry](https://github.com/tiredofit/docker-osticket/pkgs/container/docker-osticket)

```
docker pull ghcr.io/tiredofit/docker-osticket:(imagetag)
```
```

The following image tags are available along with their tagged release based on what's written in the [Changelog](CHANGELOG.md):

Expand Down Expand Up @@ -120,9 +120,9 @@ Be sure to view the following repositories to understand all the customizable op
| `ADMIN_FIRSTNAME` | First name of Admin User | |
| `ADMIN_LASTNAME` | Last name of Admin User | |
| `ADMIN_EMAIL` | Admin Email address (Make sure it is different than INSTALL_EMAIL) | |
| `ADMIN_USER` | Admin Username | |
| `ADMIN_PASS` | Admin Password *Must be more than 5 characters* | |
| `CRON_PERIOD` | Amount of time in Minutes to Check Incoming Mail | `10` |
| `ADMIN_USER` | Admin Username *Must be more than 5 characters* | |
| `ADMIN_PASS` | Admin Password | |
| `CRON_INTERVAL` | Amount of time in Minutes to Check Incoming Mail | `10` |
| `DB_HOST` | Host or container name of MariaDB Server e.g. `osticket-db` | |
| `DB_PORT` | MariaDB Port | `3306` |
| `DB_NAME` | MariaDB Database name e.g. `osticket` | |
Expand Down
2 changes: 1 addition & 1 deletion install/assets/cron/osticket.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*/<CRON_PERIOD> * * * * TZ=${TIMEZONE} php -q ${NGINX_WEBROOT}/api/cron.php >/dev/null 2>&1
*/<CRON_INTERVAL> * * * * TZ=${TIMEZONE} php -q ${NGINX_WEBROOT}/api/cron.php >/dev/null 2>&1
16 changes: 11 additions & 5 deletions install/etc/cont-init.d/30-osticket
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,24 @@ check_service_initialized init 20-php-fpm
### Sanity Test
sanity_db
sanity_var ADMIN_PASS "Admin Password"
if [ "$(wc -c "${ADMIN_PASS}")" -le 5 ] ; then
print_error "Admin passwords need to be 5 characters or greater. Exiting.."
exit 5
fi
sanity_var ADMIN_EMAIL "Admin Email"
sanity_var ADMIN_USER "Admin Username"
if [ "$(wc -c "${ADMIN_USER}")" -le 5 ] ; then
print_error "Admin user need to be 5 characters or greater. Exiting.."
exit 5
fi

sanity_var INSTALL_SECRET "Install Secret"

db_ready mariadb

# Bugfix ~ 3.5.3
if [ -n "${CRON_PERIOD}" ] ; then
CRON_INTERVAL=${CRON_PERIOD}
fi

### Adjust Runtime Variables
sed -i "s#<CRON_PERIOD>#${CRON_PERIOD}/g" /assets/cron/osticket.txt
sed -i "s#<CRON_INTERVAL>#${CRON_INTERVAL}/g" /assets/cron/osticket.txt
sed -i "s#<WEBROOT>#${NGINX_WEBROOT}#g" /assets/setup/install.php

### Check to see if this is a new install, if yes copy information from assets create directories...
Expand Down

0 comments on commit 539441e

Please sign in to comment.