Changeset 2329


Ignore:
Timestamp:
Oct 2, 2013, 8:29:52 AM (5 years ago)
Author:
matthijs
Message:

Move OpenVPN port number update from save-config.sh to migrate-config.sh

In r2326, the save-config.sh was changed to always update the
OpenVPN port numbers in /etc/config/services using /etc/config/openvpn,
making sure that backups after that revision will work. Backups imported
to revisions before r2280 also work, since the UMTS script in there
implicitely did the same on every boot. However, when making a backup on
a revision before r2326 and importing it to a revision after r2280 would
still break.

To prevent this, we sync the port numbers on every backup restore and
upgrade.

References: #1257

Location:
trunk/luci/modules/admin-fon/root/sbin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/modules/admin-fon/root/sbin/migrate-config.sh

    r2209 r2329  
    3131fi
    3232config_clear
     33
     34# Firmware 2.3.7.0 did not properly backs up the OpenVPN port numbers in
     35# /etc/config/services. As of 2.3.8.0, the port numbers in
     36# /etc/config/services are no longer backed up at all. In either case,
     37# the port number is backed up properly in /etc/config/openvpn, so run
     38# this script to update the services config as well.
     39/etc/fonstated/ReconfOpenVPN"
  • trunk/luci/modules/admin-fon/root/sbin/save-config.sh

    r2326 r2329  
    132132echo "EOF"
    133133echo "uci commit openvpn"
    134 # Run the ReconfOpenVPN script to update /etc/config/services with the
    135 # proper port numbers
    136 echo "/etc/fonstated/ReconfOpenVPN"
    137134config_clear
    138135
Note: See TracChangeset for help on using the changeset viewer.