Girish Ramakrishnan
7b4bca5d90
Append does not seem to work
2014-09-17 16:14:40 -07:00
Girish Ramakrishnan
ffa5fa335d
Add more debugs for testing
2014-09-17 16:12:29 -07:00
Girish Ramakrishnan
bd74a364ce
Write logfiles with pid and also append
...
This will help confirm if the scripts are running twice for some
reason.
2014-09-17 15:05:46 -07:00
Girish Ramakrishnan
bd4c10f6d3
supervisor and nginx should never be running
2014-09-17 15:01:31 -07:00
Girish Ramakrishnan
37a8984d29
/var/log/cloudron should already exist at this point
2014-09-17 15:00:03 -07:00
Girish Ramakrishnan
10a7b6685d
Revert "Remove redirection, already redirected in bootstrap init.d script"
...
This reverts commit 45c771d6f8 .
2014-09-17 11:50:24 -07:00
Girish Ramakrishnan
45c771d6f8
Remove redirection, already redirected in bootstrap init.d script
...
(checking if this is the root cause of bootstrap.sh running twice)
2014-09-17 10:51:36 -07:00
Girish Ramakrishnan
7bb96f3523
Add collectd and graphite support to base image
2014-09-15 02:04:23 -07:00
Johannes Zellner
7298e066ba
Add reboot route and webadmin UI
...
The reboot route will also be called from the reboot action
in the appstore to attmept a soft reboot, rather than a power
cycle.
2014-09-07 19:27:31 -07:00
Girish Ramakrishnan
59623d783c
/etc/yellowtent is not used anymore
2014-09-06 18:43:27 -07:00
Girish Ramakrishnan
d6ecb4aa55
Allow creation of DO images for a specific revision
2014-08-29 13:25:56 -07:00
Girish Ramakrishnan
c192020a4b
Rename script
2014-08-29 11:05:58 -07:00
Girish Ramakrishnan
76d85b209a
Update bootstrap.sh to have the latest update.sh location
2014-08-27 19:16:53 -07:00
Girish Ramakrishnan
930cbc071f
Implement restore script
2014-08-24 19:22:16 -07:00
Girish Ramakrishnan
ec4cd4a213
Update bootstrap scripts with path to new scripts dir
2014-08-24 17:44:12 -07:00
Johannes Zellner
609616b89b
Fix syntax error in bootstrap.sh
2014-08-24 04:39:11 -07:00
Girish Ramakrishnan
32837e36ef
Implement backup
...
Fixes #32
2014-08-24 01:58:03 -07:00
Johannes Zellner
0ffe837c60
Allow bootstrap.sh to run as root without password
2014-08-24 01:39:55 -07:00
Johannes Zellner
d9d125468c
Log everything to /var/log/cloudron/
2014-08-24 01:38:57 -07:00
Girish Ramakrishnan
b08b0a5494
Change cert generation dir
2014-08-20 01:54:39 -07:00
Girish Ramakrishnan
df63793c61
Change naming convention of files under cert/*.
...
Follow the naming convention as used in provisioning by appstore:
host.cert = public cert
host.info = textual output
host.key = private key
host.pem = key file and cert file combined into one
2014-08-20 01:35:56 -07:00
Girish Ramakrishnan
f302062306
Move nginx cert dir to be under backup dir
2014-08-20 00:34:02 -07:00
Johannes Zellner
3b0326a69f
Run npm install as user with HOME set for that user
2014-08-09 13:12:11 -07:00
Girish Ramakrishnan
e6fa61f76a
Template the admin and app config files with srcdir
2014-08-07 18:02:02 -07:00
Girish Ramakrishnan
6b6be410fd
Change nginx prefix directory
2014-08-07 17:00:18 -07:00
Girish Ramakrishnan
bfb1e584bf
Copy mime.types to nginx configuration
2014-08-07 11:55:53 -07:00
Girish Ramakrishnan
fa10e77def
Do not start supervisor automatically
...
The bootstrap.sh script enables it after it's done configuring
supervisor
2014-08-07 11:53:02 -07:00
Girish Ramakrishnan
de2cc8a905
Run npm install as yellowtent user
2014-08-07 11:31:17 -07:00
Girish Ramakrishnan
1c8cdc1f31
Move nginx files away from repo
...
Fixes #52
2014-08-07 06:22:12 -07:00
Girish Ramakrishnan
f406f873d0
Alias ~/.yellowtent as BACKUP_DIR
2014-08-07 06:17:52 -07:00
Girish Ramakrishnan
09a7e6244b
Rename BASEDIR to SRCDIR
2014-08-07 06:13:44 -07:00
Johannes Zellner
68372e9b3e
Only log box* with debug() when deployed
2014-08-06 21:52:13 -07:00
Girish Ramakrishnan
b6be2997f3
Fix logs
...
fixes #54
2014-08-06 19:35:34 -07:00
Girish Ramakrishnan
27a6eb69f3
Merge box stdout and stderr logs
2014-08-05 15:11:49 -07:00
Johannes Zellner
dd619a258d
Swap supervisor config file names
2014-08-04 23:28:35 -07:00
Johannes Zellner
19afa8f5f1
Remove any system provided supervisor configs
2014-08-04 22:23:24 -07:00
Johannes Zellner
15bd1c7eb3
Create nginx and box supervisor manifests during bootstrap
...
Previously we were linking the supervisor config
directory into /etc/supervisor and using template manifests,
which got changed during bootstrapping. In order to avoid
changing files in the git repository and more harder to
follow 'sed's the bootstrap.sh now simply creates those files
directly with appropriate values.
This also eliminates the yellowtent.json, as those values
are now passed via the process.env, set in the supervisor
manifest for the box
2014-08-04 21:50:38 -07:00
Johannes Zellner
80eb87069c
Capture bootstrap script output in log file
2014-08-01 08:35:56 -07:00
Johannes Zellner
2b4d927b42
Make bootstrap script exectuable
2014-08-01 08:19:03 -07:00
Johannes Zellner
e466a49e62
Cleanup node_modules on cloudron
2014-07-31 18:02:16 -07:00
Johannes Zellner
a9b2020270
Ensure npm install succeeds
2014-07-31 17:48:30 -07:00
Johannes Zellner
caccc3eaf5
explicitly use bash to execute the certificate script
2014-07-31 12:35:24 -07:00
Johannes Zellner
33a9721cdf
Fixup the certificate generation
2014-07-31 12:33:14 -07:00
Johannes Zellner
be384a6f03
Generate self signed certs based on hostname during bootstrap
2014-07-31 11:15:01 -07:00
Johannes Zellner
e06227c52d
Temporarily disable certificate retrieval from appstore
2014-07-31 10:09:15 -07:00
Johannes Zellner
696f95e0d7
move most settings from yellowtent.conf to the settingsdb
2014-07-31 09:31:28 -07:00
Johannes Zellner
f92ca8bb03
Move bootstrap script to box
...
Instead of executing the bootstrap script via ssh,
we now run it once the box boots the first time.
It will update the repo and run the box code, which
needs to contact the appstore in order to get provisioned.
2014-07-31 08:16:35 -07:00