Girish Ramakrishnan
61789e3fda
Use the installer.sh from the source tarball
...
This redesigns how update works. installer.sh now rebuild the package,
stops the old code and starts the new code. Importantly, it does not
download the new package, this is left to the caller. cloudron-setup
downloads the code and calls installer.sh of the downloaded code.
Same goes for updater.sh. This means that installer.sh itself is now
easily updatable.
Part of #152
2016-12-28 08:59:07 -08:00
Girish Ramakrishnan
fae0ba5678
Decouple installer from the base image script
...
This means that the base image does not have the installer anymore
and needs to be copied over.
Part of #152
2016-12-28 08:58:10 -08:00
Johannes Zellner
b6e96d77aa
Thanks shell
2016-12-12 14:59:30 +01:00
Johannes Zellner
b2dbb5a100
Fixup bugs with updated backup scripts
2016-12-12 09:51:52 +01:00
Johannes Zellner
816911d071
Make s3 backup scripts aware of endpoints
...
Part of #123
2016-12-12 09:51:52 +01:00
Johannes
95a90dd050
Check on the installer service to be able to cancel update from box side
2016-11-06 14:30:26 +01:00
Johannes
908aa6f426
Reset the systemd-run service in case it failed earlier
...
systemd will refuse to run a transient unit if one run
with the same unit name failed earlier
2016-11-06 14:30:26 +01:00
Johannes
18b58ced8d
Run the updater through systemd-run
...
This ensures it can start and stop the box process.
Due to control-group setting to killall children
the updater itself would get killed if the box service
restarts
2016-11-06 14:30:26 +01:00
Johannes
b40a9803a8
Adjust script paths for isntaller.sh movement
2016-11-06 14:30:26 +01:00
Johannes
16deb001bf
No more cloudron-installer to stop
2016-11-06 14:29:41 +01:00
Johannes
8adf9f3643
Add initial update.sh script to trigger installer.sh from box
2016-11-06 14:29:41 +01:00
Johannes
5ba86d5c35
Use aws s3 cli to test credentials
...
This allows us to test the exact same usage of the api
through the cli tool, not the javascript api
2016-10-28 16:36:05 +02:00
Johannes Zellner
7e41ea9c31
Make the script executable
2016-10-10 16:25:43 +02:00
Johannes Zellner
f05a5226ba
Add new sudo file rmbackup.sh as backups are owned by root currently
2016-10-10 16:25:43 +02:00
Girish Ramakrishnan
98773160d0
sync before reboot
2016-10-03 17:43:22 -07:00
Johannes Zellner
7b9eff94b3
No need to set always empty headers for app restore curl
2016-09-20 09:25:48 +02:00
Johannes Zellner
3ac786ba6d
Define shell variable regardless of backend
2016-09-20 09:25:48 +02:00
Johannes Zellner
746afb2b21
Shell uses obviously == no ===
2016-09-20 09:25:48 +02:00
Johannes Zellner
2ce768e29a
Refactor getAppBackupCredentials()
2016-09-20 09:25:48 +02:00
Johannes Zellner
6c23bce8e8
Prepare support for provider specific backup scripts
2016-09-20 09:25:48 +02:00
Girish Ramakrishnan
e2a22c3a5e
collect more docker logs for IP mapping
2016-09-16 22:10:33 -07:00
Girish Ramakrishnan
f3978897ae
use a different exit code to signal external errors
...
http://tldp.org/LDP/abs/html/exitcodes.html
2016-08-19 21:54:14 -07:00
Girish Ramakrishnan
2d01f2a0e9
pass migrate reason all the way to splash code
2016-07-05 22:04:24 -05:00
Girish Ramakrishnan
77bd5bfcbe
pass retire reason
2016-06-29 23:24:00 -05:00
Girish Ramakrishnan
1fb4c80951
remove bad comment
2016-06-28 16:02:35 -05:00
Johannes Zellner
ef200fcc85
Support s3 backup upload without session tokens
2016-06-22 10:21:56 +02:00
Girish Ramakrishnan
f15f3c9052
node-ify setup_infra.sh
2016-06-15 05:26:40 -07:00
Johannes Zellner
509083265f
fix setup_infra.sh to accomodate ifconfig differences
2016-06-08 15:01:28 +02:00
Girish Ramakrishnan
01b6defd24
mount mail container /run into data
2016-05-26 15:18:10 -07:00
Girish Ramakrishnan
b2cadaf95c
load vars files after the platform is created
2016-05-24 16:28:59 -07:00
Girish Ramakrishnan
957f787701
setup mail addon root credentials
2016-05-24 16:18:21 -07:00
Girish Ramakrishnan
ad48067bb2
setup_infra now uses infra_version.js
...
INFRA_VERSION is now removed. Note that DATA_DIR/INFRA_VERSION
still exists.
2016-05-24 16:16:03 -07:00
Girish Ramakrishnan
7fb28662c1
remove old images in platform.js
2016-05-24 13:23:41 -07:00
Girish Ramakrishnan
e5a030baff
move platform cleanup bits to javascript
2016-05-24 10:52:55 -07:00
Girish Ramakrishnan
00726b01e2
pass -no-run-if-empty instead
2016-05-23 15:50:36 -07:00
Girish Ramakrishnan
517b967fe9
enable sieve
2016-05-17 14:04:57 -07:00
Girish Ramakrishnan
266603bb19
Do not barf on rmi
2016-05-16 16:56:17 -07:00
Girish Ramakrishnan
099eb2bca4
use port 2525
2016-05-16 12:52:36 -07:00
Girish Ramakrishnan
cc8767274a
Bind 587 with 2525 as well
...
MSA (587) and MTA (25) are the same protocol. Only difference is
that 587 does relaying with AUTH. Haraka has been configured to
make this distinction.
2016-05-16 08:32:30 -07:00
Girish Ramakrishnan
83a252bd20
there is only mail container now
2016-05-15 21:15:53 -07:00
Girish Ramakrishnan
ed55ad1c6f
change image name
2016-05-13 21:34:04 -07:00
Girish Ramakrishnan
560f460a32
rename to sendmail
2016-05-13 20:48:31 -07:00
Girish Ramakrishnan
3f0e2024e4
pass db name and password for tests
2016-05-13 19:35:20 -07:00
Girish Ramakrishnan
39c4954371
remove isIncomingMailEnabled. always enable for now
...
also, custom domain === we will take over domain completely (setup
mx and all)
2016-05-13 18:44:08 -07:00
Girish Ramakrishnan
1b8b4900a2
parametrize data_dir for tests
2016-05-13 17:57:56 -07:00
Girish Ramakrishnan
0751974624
Add a hack to test addon patching
2016-05-12 16:41:58 -07:00
Girish Ramakrishnan
bf42b735d1
fix the smtp port
2016-05-12 09:11:29 -07:00
Girish Ramakrishnan
e16125c67e
set MAIL_DOMAIN and MAIL_SERVER_NAME
2016-05-11 09:49:20 -07:00
Girish Ramakrishnan
646ba096c3
start recvmail addon in setup_infra
2016-05-11 08:55:51 -07:00
Girish Ramakrishnan
776f184dbc
wait randomly instead
2016-05-10 16:51:20 -07:00