This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| getting_started:update [2022/05/24 22:24] – created admin | getting_started:update [2022/06/02 20:08] (current) – [Update RADIUSdesk] admin | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| sudo git pull | sudo git pull | ||
| </ | </ | ||
| + | * Apply the SQL patches. | ||
| + | * The SQL patches are located under // / | ||
| + | // | ||
| + | <code bash> | ||
| + | cd / | ||
| + | sudo mysql -u root rd < 8.057_add_legacy_wifi_support.sql | ||
| + | sudo mysql -u root rd < 8.058_add_opt_in_for_ctc.sql | ||
| + | sudo mysql -u root rd < 8.059_add_dynamic_detail_ctcs.sql | ||
| + | sudo mysql -u root rd < 8.060_add_lost_pwd_method.sql | ||
| + | sudo mysql -u root rd < 8.061_add_coova_settings.sql | ||
| + | #There might be more patches. | ||
| + | #Apply all the new ones. (use ls -l to check the dates of the files) | ||
| + | #The patch name convention is 8.0_incremental_number_description | ||
| + | #The patches are non-destructive so you can apply them multiple times. | ||
| + | </ | ||
| + | * Apply the latest FreeRADIUS config (not always required) | ||
| + | |||
| + | <code bash> | ||
| + | cd / | ||
| + | ls -l | ||
| + | #Here you can see one file was updated with the git pull | ||
| + | #We can replace the current FreeRADIUS config with it | ||
| + | -rw-r--r-- 1 system system 234816 Jun 5 2021 freeradius-3.daily.10.tar.gz | ||
| + | -rw-rw-r-- 1 system system 232305 May 21 03:26 freeradius-3-radiusdesk.tar.gz | ||
| + | |||
| + | # Stop the service if it is already running | ||
| + | sudo systemctl stop freeradius | ||
| + | # Backup the original FreeRADIUSdirectory | ||
| + | sudo mv / | ||
| + | # Extract the RADIUSdesk modified FreeRADIUS directory | ||
| + | sudo tar xzf / | ||
| + | sudo mv / | ||
| + | cd / | ||
| + | sudo chown -R freerad. 3.0 | ||
| + | sudo mkdir / | ||
| + | chown freerad. / | ||
| + | # Start the service | ||
| + | sudo systemctl start freeradius | ||
| + | # See if it is now running with the new config | ||
| + | sudo systemctl status freeradius | ||
| + | </ | ||
| + | * Update the GUI in the Nginx Document Root | ||
| + | <code bash> | ||
| + | sudo cp -R / | ||
| + | </ | ||
| + | |||
| + | |||