Girish Ramakrishnan
01ce251596
constness
2022-04-14 18:03:43 -05:00
Girish Ramakrishnan
05d7a7f496
constness
2022-04-14 17:50:41 -05:00
Girish Ramakrishnan
685bda35b9
storage: make remove and removeDir async
2022-04-14 16:16:20 -05:00
Girish Ramakrishnan
8d8cdd38a9
Add missing await
2022-04-14 15:40:51 -05:00
Girish Ramakrishnan
d54c03f0a0
storage: make exists async
2022-04-14 12:24:34 -05:00
Girish Ramakrishnan
11f7be2065
storage: verifyConfig is now async
2022-04-14 12:24:30 -05:00
Girish Ramakrishnan
a39e0ab934
storage: make remount async
2022-04-14 09:57:31 -05:00
Girish Ramakrishnan
b51082f7e4
storage: checkPreconditions is now async
2022-04-14 07:40:19 -05:00
Girish Ramakrishnan
9ec76c69ec
s3: make callback of getS3Config
2022-04-14 07:35:41 -05:00
Girish Ramakrishnan
b0a09a8a00
restore: fix usage of backupId
2022-04-13 21:23:12 -05:00
Girish Ramakrishnan
5870f949a3
Update changes
2022-04-13 11:39:23 -05:00
Girish Ramakrishnan
87cb90c9b6
Fix crash
...
ReferenceError: Cannot access 'backups' before initialization
2022-04-08 16:27:11 -07:00
Girish Ramakrishnan
21b900258a
backup: fix format of id
...
the id is used in dependsOn by the UI to find the linked apps. if we
had it as an uuid, we have to query the db a lot
2022-04-08 16:23:27 -07:00
Johannes Zellner
de9f3c10f4
Use new sftp addon 3.6.1
...
This will copy the uploaded file on conflict with a unique .number
extension
2022-04-07 18:02:11 +02:00
Johannes Zellner
47e45808a3
Give the addons a lot more time to initiate a connection
2022-04-06 13:05:09 +02:00
Girish Ramakrishnan
0280c2baba
keep the backup if preserveSecs is -1
2022-04-05 11:08:38 -07:00
Girish Ramakrishnan
2f8f5fcb7d
Typo
2022-04-05 10:26:05 -07:00
Girish Ramakrishnan
709d4041b2
backups: fix restore code path after backup id changes
2022-04-05 09:55:57 -07:00
Johannes Zellner
b4b999bd74
Fix await safe usage
2022-04-05 13:17:49 +02:00
Girish Ramakrishnan
ea3fd27123
backups: recursively update the dep preserveSecs
...
One idea was to compute this at cleanup time, but this has two problems:
* the UI won't reflect this value. can be good or bad
* the cleaner has no easy way to find out the "parent". I guess we should
change our data structure, if we want to go down this route...
2022-04-04 21:29:35 -07:00
Girish Ramakrishnan
452a4d9a75
backups: add remotePath
...
the main motivation is that id can be used in REST API routes. previously,
the id was a path and this had a "/" in it. This made /api/v1/backups/:backupId
not work.
2022-04-04 20:40:40 -07:00
Girish Ramakrishnan
54934c41a7
storage: rename getBackupPath to getBasePath
2022-04-04 14:08:24 -07:00
Girish Ramakrishnan
a05e564ae6
Fix expectation in test
2022-04-04 14:03:07 -07:00
Girish Ramakrishnan
57ac94bab6
Fix appstore test
2022-04-04 13:55:23 -07:00
Girish Ramakrishnan
6839ff4cf6
reverseproxy: fix typo
...
this type was causing nginx configs of the primary domain being re-written
everytime we try to renew certs
2022-04-04 10:30:32 -07:00
Girish Ramakrishnan
993dda9121
rename function
2022-04-03 08:29:59 -07:00
Girish Ramakrishnan
70695b1b0f
backups: set label of backup and control it's retention
2022-04-02 19:30:54 -07:00
Girish Ramakrishnan
d47b39d90b
eventlog: distinguish install vs update finish
2022-04-01 14:19:53 -07:00
Girish Ramakrishnan
574d3b120f
Use hyphens instead of camel case for scripts
2022-04-01 09:51:15 -07:00
Girish Ramakrishnan
3d1f2bf716
move init script into scripts
...
the baseimage directory was from a time when we used to build a
base image and snapshot it. this is not done anymore.
init-ubuntu.sh - static packages installed one time and managed by ubuntu
installer.sh - packages installed and maintained by cloudron. run before an update.
this can "fail" and the updater can thus abort
start.sh - configuring packages
2022-04-01 09:48:40 -07:00
Girish Ramakrishnan
bac5edc188
cloudron-setup: remove arguments to init script
...
this ends support for cloudron 5 installs with this version of the script
2022-04-01 09:37:06 -07:00
Girish Ramakrishnan
7700c56d3e
cloudron-setup: remove --skip-baseimage-init, it is unused
2022-04-01 09:22:23 -07:00
Girish Ramakrishnan
9f395f64da
accessToken -> cloudronToken
2022-03-31 23:59:42 -07:00
Girish Ramakrishnan
73d029ba4b
cloudron-setup: add setup-token to arg list
2022-03-31 23:49:34 -07:00
Girish Ramakrishnan
a292393a43
7.2 changes
2022-03-31 23:45:14 -07:00
Girish Ramakrishnan
37a4e8d5c5
cloudron-setup: add --setup-token
2022-03-31 23:38:54 -07:00
Girish Ramakrishnan
81728f4202
appstore: make the args of updateCloudron clear
2022-03-31 23:27:00 -07:00
Girish Ramakrishnan
2d2ddd1c49
add note on the existing setupToken
2022-03-31 23:02:26 -07:00
Girish Ramakrishnan
bc49f64a0c
appstore: it never returns 422
...
I think I meant 402 which is subscription expired/billing error
2022-03-31 22:51:40 -07:00
Girish Ramakrishnan
52fc031516
Log error message if updateCloudron failed
2022-03-31 22:46:14 -07:00
Girish Ramakrishnan
cae528158c
appstore: check login response
2022-03-31 22:43:34 -07:00
Girish Ramakrishnan
566a03cd59
remove unnecessary temp variables
2022-03-31 22:41:48 -07:00
Girish Ramakrishnan
ad2221350f
Add appstore web token
...
* For existing installs, migrate using the soon to be obsoleted user_token route
* For new installs, the token post login is stashed during registration time
2022-03-31 22:35:45 -07:00
Girish Ramakrishnan
656dca7c66
rename cloudron_token to appstore_api_token
2022-03-31 22:18:08 -07:00
Girish Ramakrishnan
638fe2e6c8
ldap: add rootDSE test
2022-03-31 21:18:56 -07:00
Girish Ramakrishnan
3295d2b727
settings: remove licenseKey
...
this is unused
2022-03-31 12:47:45 -07:00
Johannes Zellner
c4689a8385
Add registerWithSetupToken() to be used
2022-03-31 17:29:44 +02:00
Girish Ramakrishnan
d09d6c21fa
sshfs: fix bug where sshfs mounts were generated without unbound dependancy
2022-03-30 21:39:15 -07:00
Girish Ramakrishnan
7ec1594428
create a separate support user
...
This creates a separate user named 'cloudron-support' using which we
can provide remote support. The hyphen username convention follows the
systemd sytem username convention.
With a separate user, we don't need to ask users to keep changing PermitRootLogin
(and remind them to change it back).
Using a sudo user has various advantages:
* https://askubuntu.com/questions/687249/why-does-ubuntu-have-a-disabled-root-account
* https://wiki.debian.org/sudo
* https://askubuntu.com/questions/16178/why-is-it-bad-to-log-in-as-root
The yellowtent user is also locked down further - no password and no shell login.
2022-03-30 15:08:20 -07:00
Girish Ramakrishnan
529f6fb2cd
sftp: fix private key file permissions on restore
2022-03-30 11:58:21 -07:00