Updated on 2023-03-16 GMT+08:00

Presetting Configuration Files by Sharing Applications

Scenario: One or more files, such as configuration files or scripts, need to be placed on cloud phones in batches.

Procedure

  1. Compress the files into the com.cph.config.tar package based on the required directory structure.

    For example, the following package contains a script file and a text file.

    1. Push the TAR package to the OBS bucket by referring to Preparing the TAR Package of an Application.
    2. Set pre_install_app to 1 by referring to Pushing the TAR Package of an Application to a Cloud Phone Server.
    3. Restart the cloud phone where you want to place the file.

    After the operations are complete, the files in the TAR package are copied to all restarted cloud phones on the target cloud phone server.