This is an automated email from the ASF dual-hosted git repository.
ppapou pushed a commit to branch DATALAB-2370
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2370 by this push:
new 14ad685 Minor config adjustment
14ad685 is described below
commit 14ad68538aea9296c3e9f80fd4514361fdf3ed1e
Author: ppapou <[email protected]>
AuthorDate: Tue Sep 21 20:52:04 2021 -0400
Minor config adjustment
---
.../epam/datalab/properties/ChangePropertiesConst.java | 12 ++++++------
.../epam/datalab/properties/ChangePropertiesService.java | 16 ++++++++--------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git
a/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesConst.java
b/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesConst.java
index 018d4bc..d59d6c8 100644
---
a/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesConst.java
+++
b/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesConst.java
@@ -23,17 +23,17 @@ public interface ChangePropertiesConst {
String GKE_SELF_SERVICE_PATH = "/root/self-service.yaml";
String GKE_SELF_SERVICE = "self-service.yaml";
String SELF_SERVICE = "self-service.yml";
- //String SELF_SERVICE_PROP_PATH = "/opt/datalab/conf/self-service.yml";
- String SELF_SERVICE_PROP_PATH =
"services/self-service/self-service.yml";
+ String SELF_SERVICE_PROP_PATH = "/opt/datalab/conf/self-service.yml";
+ // String SELF_SERVICE_PROP_PATH =
"services/self-service/self-service.yml";
String PROVISIONING_SERVICE = "provisioning.yml";
- //String PROVISIONING_SERVICE_PROP_PATH =
"/opt/datalab/conf/provisioning.yml";
-String PROVISIONING_SERVICE_PROP_PATH =
"services/provisioning-service/provisioning.yml";
+ String PROVISIONING_SERVICE_PROP_PATH =
"/opt/datalab/conf/provisioning.yml";
+//String PROVISIONING_SERVICE_PROP_PATH =
"services/provisioning-service/provisioning.yml";
String BILLING_SERVICE = "billing.yml";
- //String BILLING_SERVICE_PROP_PATH = "/opt/datalab/conf/billing.yml";
+ String BILLING_SERVICE_PROP_PATH = "/opt/datalab/conf/billing.yml";
// String BILLING_SERVICE_PROP_PATH =
"services/billing-gcp/billing.yml";
// String BILLING_SERVICE_PROP_PATH =
"services/billing-azure/billing.yml";
- String BILLING_SERVICE_PROP_PATH = "services/billing-aws/billing.yml";
+// String BILLING_SERVICE_PROP_PATH = "services/billing-aws/billing.yml";
String GKE_BILLING_PATH = "/root/billing.yaml";
String GKE_BILLING_SERVICE = "billing.yml";
String RESTART_URL = "config/restart";
diff --git
a/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesService.java
b/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesService.java
index 3f1b6a4..7d857de 100644
---
a/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesService.java
+++
b/services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/ChangePropertiesService.java
@@ -136,14 +136,14 @@ public class ChangePropertiesService {
private void changeCHMODE(String serviceName, String path, String
fromMode, String toMode) throws IOException {
-// try {
-// String command =
String.format(ChangePropertiesConst.CHANGE_CHMOD_SH_COMMAND_FORMAT, toMode,
path);
-// log.info("Trying to change chmod for file {} {}->{}",
serviceName, fromMode, toMode);
-// log.info("Execute command: {}", command);
-// Runtime.getRuntime().exec(command).waitFor();
-// } catch (InterruptedException e) {
-// log.error("Failed change chmod for file {} {}->{}", serviceName,
fromMode, toMode);
-// }
+ try {
+ String command =
String.format(ChangePropertiesConst.CHANGE_CHMOD_SH_COMMAND_FORMAT, toMode,
path);
+ log.info("Trying to change chmod for file {} {}->{}", serviceName,
fromMode, toMode);
+ log.info("Execute command: {}", command);
+ Runtime.getRuntime().exec(command).waitFor();
+ } catch (InterruptedException e) {
+ log.error("Failed change chmod for file {} {}->{}", serviceName,
fromMode, toMode);
+ }
}
private String addLicence() {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]