Compare commits

...

4 Commits

Author SHA1 Message Date
Johannes Zellner af512a669b Only show plan selection UI for caas 2016-07-04 16:02:14 +02:00
Johannes Zellner 5ed22ba6ff Minor echo to ec2 image building 2016-07-04 14:06:07 +02:00
Johannes Zellner 4eca370424 Set the correct hostname in start.sh 2016-07-04 14:06:07 +02:00
Johannes Zellner 1f35b17812 Setup admin certs if we are configured 2016-07-04 14:06:07 +02:00
5 changed files with 13 additions and 6 deletions
+1
View File
@@ -159,6 +159,7 @@ while [ $i -lt ${#ec2_regions[*]} ]; do
while true; do
event_status=`aws ec2 describe-images --region ${ec2_regions[$i]} --profile ${aws_credentials} --image-id ${ec2_amis[$i]} | $JSON Images[0].State`
if [[ "${event_status}" == "available" ]]; then
echo "done"
break
fi
debug -n "."
+3
View File
@@ -34,6 +34,9 @@ set_progress() {
set_progress "1" "Create container"
$script_dir/container.sh
set_progress "5" "Set hostname"
hostnamectl set-hostname "${arg_fqdn}"
set_progress "10" "Ensuring directories"
# keep these in sync with paths.js
[[ "${is_update}" == "false" ]] && btrfs subvolume create "${DATA_DIR}/box"
+1 -1
View File
@@ -92,7 +92,7 @@ function getApi(app, callback) {
}
function installAdminCertificate(callback) {
if (cloudron.isConfiguredSync()) return callback();
if (!cloudron.isConfiguredSync()) return callback();
settings.getTlsConfig(function (error, tlsConfig) {
if (error) return callback(error);
+2 -2
View File
@@ -118,13 +118,13 @@
</div>
</div>
<div class="section-header" ng-show="user.admin">
<div class="section-header" ng-show="config.provider === 'caas' && user.admin">
<div class="text-left">
<h3>Plans</h3>
</div>
</div>
<div class="card" style="margin-bottom: 15px;" ng-show="user.admin">
<div class="card" style="margin-bottom: 15px;" ng-show="config.provider === 'caas' && user.admin">
<div class="row">
<div class="col-xs-10 plans" style="margin-left: 20px">
<div ng-repeat="plan in availablePlans">
+6 -3
View File
@@ -311,10 +311,13 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
Client.onReady(function () {
fetchBackups();
getPlans();
$scope.currentPlan = $scope.config.plan;
$scope.currency = $scope.config.currency === 'eur' ? '€' : '$';
if ($scope.config.provider === 'caas') {
getPlans();
$scope.currentPlan = $scope.config.plan;
$scope.currency = $scope.config.currency === 'eur' ? '€' : '$';
}
});
// setup all the dialog focus handling