RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
getting_started:update [2022/05/24 22:24] – created admingetting_started:update [2022/06/02 20:08] (current) – [Update RADIUSdesk] admin
Line 9: Line 9:
 sudo git pull sudo git pull
 </code> </code>
 +  * Apply the SQL patches.
 +  * The SQL patches are located under // /var/www/html/cake3/rd_cake/setup/db/
 +//
 +<code bash>
 +cd /var/www/html/cake3/rd_cake/setup/db/
 +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.
 +</code>
 +  * Apply the latest FreeRADIUS config (not always required)
 +
 +<code bash>
 +cd /var/www/html/cake3/rd_cake/setup/radius/
 +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 /etc/freeradius /etc/freeradius.21-May-22
 +# Extract the RADIUSdesk modified FreeRADIUS directory
 +sudo tar xzf /var/www/html/cake3/rd_cake/setup/radius/freeradius-3-radiusdesk.tar.gz --one-top-level=/etc/freeradius/
 +sudo mv /etc/freeradius/freeradius /etc/freeradius/3.0
 +cd /etc/freeradius
 +sudo chown -R freerad. 3.0
 +sudo  mkdir /var/run/freeradius
 +chown freerad. /var/run/freeradius
 +# Start the service 
 +sudo systemctl start freeradius
 +# See if it is now running with the new config
 +sudo systemctl status freeradius
 +</code>
 +  * Update the GUI in the Nginx Document Root
 +<code bash>
 +sudo cp -R /var/www/html/rd/build/production/Rd/* /var/www/html/
 +</code>
 +
 +