Child pages
  • The modify_packages Script

Versions Compared

Key

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

Include Page
LIB:_Version
LIB:_Version

Table of Contents
stylenone

Overview 

You can use the /scripts/modify_packages script to set existing packages to use a new cPanel theme.  

Note
titleNote:

To set a new theme for current cPanel accounts, use the /scripts/modify_accounts script.


The /scripts/modify_packages script

To use this script, run the following command as the root user:

Code Block
languagebash
/scripts/modify_packages --theme=theme_name [options]


Note
titleNotes:

In this example, theme_name represents the name of the theme that you wish to set for the package.

Arguments

The /scripts/modify_package script accepts the following arguments:

OptionDescriptionExample
--theme

Required

The theme name that you wish to assign to the package. Specify the paper_lantern theme or the name of another valid theme that exists on the server.


Code Block
languagebash
/scripts/modify_packages --theme=paper_lantern


--packages A comma-separated list of packages that you wish to modify.


Code Block
languagebash
/scripts/modify_packages --theme=paper_lantern --packages=my_pkg,another_pkg


--all-packagesUpdate all of the packages that exist on the server.


Code Block
languagebash
/scripts/modify_packages --theme=paper_lantern --all-packages


Additional documentation

Localtab Group


Localtab
activetrue
titleSuggested documentation

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("packages","themes") and label = "whm" and space = currentSpace()


Localtab
titleFor cPanel users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("packages","themes") and label = "cpanel" and space = currentSpace()


Localtab
titleFor WHM users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("packages","themes") and label = "whm" and space in (currentSpace(),"CKB")


Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("packages","themes") and space = "DD"