2016-10-31 17:07:36 +01:00
|
|
|
# Installer
|
|
|
|
|
|
|
|
|
|
This subfolder contains all resources, which persist across a Cloudron update.
|
|
|
|
|
Only code and assets, which are part of the updater belong here.
|
|
|
|
|
|
|
|
|
|
Installer is the name which got inherited from times, where this folder contained
|
|
|
|
|
much more infrastructure components, like a local webserver to facilitate updates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## installer.sh
|
|
|
|
|
|
|
|
|
|
The main entry point for initial provisioning and also updates (not upgrades).
|
|
|
|
|
|
|
|
|
|
It is called from:
|
|
|
|
|
* cloudron-setup (during initial provisioning, restoring or upgrade)
|
|
|
|
|
* cloudron.js in the box code (during an update)
|
|
|
|
|
|
|
|
|
|
Two arguments need to be supplied in this order:
|
|
|
|
|
1. The public url to download the box release tarball `--sourcetarballurl`
|
|
|
|
|
2. JSON object which contains the user-data `--data`
|
|
|
|
|
|
|
|
|
|
|
2016-11-02 14:52:13 +01:00
|
|
|
## cloudron-system-setup.sh
|
2016-10-31 17:07:36 +01:00
|
|
|
|
|
|
|
|
This is the systemd unit file script hook, which persists Cloudron updates.
|
|
|
|
|
Mostly it revolves around setting up various parts of the filesystem, like btrfs
|
|
|
|
|
volumes and swap files
|