Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1.  Open an ssh connection to your FileWave server 

    Code Block
    languagebash
    themeRDark
    ssh root@<yourfilewaveserver.com>


  2. Run a complete backup of your filewave server. 

  3. Backup the current DEP macOS installer package

    Code Block
    languagebash
    themeRDark
    cd /usr/local/filewave/fwcld
    mv FileWaveClient.pkg FWClient_old.pkg


  4. Copy your signed InstallApplications.pkg on your mac to the /usr/local/filewave/fwcld folder on your FileWave server and change its name at the same time

    Code Block
    languagebash
    themeRDark
    scp /InstallApplications.pkg root@yourfilewaveserver.com:/usr/local/filewave/fwcld/FileWaveClient.pkg


  5. Remove the MD5 hash of the old FileWave macOS custom pkg from the database

    Code Block
    languagebash
    themeRDark
    /usr/local/filewave/postgresql/bin/psql mdm django -c "DELETE from ios_preferences WHERE key = 'dep_osx_package_md5';"

    You should see that the above query should affect one row only.

  6. Set the MD5 checksum and version of the "FileWaveClient.pkg" (really now the InstallApplications package disguised as the FileWave client package).
    macOS FileWave Server:

    Code Block
    themeRDark
    # sudo /usr/local/filewave/python/bin/python /usr/local/filewave/django/manage.pyc shell
    Pythonfrom 3.6.3 (default, Feb 27 2018, 09:02:38)
    [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    (InteractiveConsole)ios.fwcld_utility import get_package_sha256;
    get_package_sha256(force=True)
    from ios.preferences_manager import PreferencesManager; PreferencesManager.set_dep_osx_package_version("14.0.3")
    exit()
    fwcontrol server stop
    fwcontrol server start

    Linux FileWave Server:

    Code Block
    themeRDark
    # sudo /usr/local/filewave/python/bin/python /usr/local/filewave/django/manage.pyc shell
    Pythonfrom 3.6.3 (default, Jan 31 2018, 23:29:13) 
    [GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    (InteractiveConsole)ios.fwcld_utility import get_package_sha256;
    get_package_sha256(force=True)
    from ios.preferences_manager import PreferencesManager; PreferencesManager.set_dep_osx_package_version("14.0.3")
    exit()
    fwcontrol server stop
    fwcontrol server start

    Command to execute to generate the new MD5 for the "fake" Custom Client (InstallApplications.pkg):

    Code Block
    from ios.fwcld_utility import get_package_md5; 
    get_package_md5(force=True) 

    This will generate a result like:

    ['70c829ddd9bd2aeafbe07fdd35f91c03']

    Command to set the new "version" of the package:

    Code Block
    from ios.preferences_manager import PreferencesManager; PreferencesManager.set_dep_osx_package_version("12.7.1")



  7. Exit the psql shell with "\q"

  8. Restart the filewave server

    Code Block
    fwcontrol server restart


...