Skip to content

Commit f99b019

Browse files
committed
Version 0.1.0
1 parent d5e948d commit f99b019

19 files changed

Lines changed: 3498 additions & 1 deletion

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lego
2+
*.run

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
# https-configuration-tool
2-
HTTPS configuration tool for Bitnami solutions
2+
3+
This project is an HTTPS configuration tool, specifically meant for Bitnami solutions. It is a really early version of the [Bitnami HTTPS Configuration Tool](https://docs.bitnami.com/general/how-to/understand-bncert/).
4+
5+
The tool was developed as my Final Year Project in the University of Seville. As such, this repository is not supported and may not work with the latest Bitnami installations. Users are encouraged to use the [official tool](https://docs.bitnami.com/general/how-to/understand-bncert/) instead.
6+
7+
## Requirements
8+
9+
* [VMware InstallBuilder](https://installbuilder.com/) (build-time only)
10+
* Internet access (both at build-time and runtime)
11+
12+
## Build the tool
13+
14+
```
15+
$ ./build.sh
16+
```

autoupdater/update.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[Update]
2+
url = https://downloads.bitnami.com/files/bncert/latest/bncert-update.xml
3+
version_id = 010
4+
check_for_updates = 1
5+
update_download_location = ${system_temp_directory}

bncert-auto-update.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<component>
2+
<name>autoupdater</name>
3+
<description>autoupdater</description>
4+
<folderList>
5+
<folder>
6+
<name>autoupdater</name>
7+
<description>description autoupdater</description>
8+
<distributionFileList>
9+
<distributionDirectory>
10+
<origin>autoupdater</origin>
11+
</distributionDirectory>
12+
</distributionFileList>
13+
<destination>${system_temp_directory}</destination>
14+
<platforms>linux linux-x64</platforms>
15+
</folder>
16+
</folderList>
17+
</component>

bncert-auto-updater.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<autoUpdateProject>
2+
<fullName>bncert autoupdater</fullName>
3+
<shortName>bncertupdater</shortName>
4+
<version>1.0</version>
5+
<enableSslSupport>1</enableSslSupport>
6+
<autoUpdateInitializationActionList>
7+
<iniFileGet file="${system_temp_directory}/autoupdater/update.ini" section="Update">
8+
<key>update_download_location</key>
9+
<variable>UpdateDownloadLocation</variable>
10+
</iniFileGet>
11+
<deleteFile>
12+
<path>${UpdateDownloadLocation}/bncert*</path>
13+
</deleteFile>
14+
</autoUpdateInitializationActionList>
15+
<postUpdateDownloadActionList>
16+
<setInstallerVariableFromRegEx name="downloadedFileName" text="${downloadedFilePath}">
17+
<pattern>^(.*)[\:\/]</pattern>
18+
</setInstallerVariableFromRegEx>
19+
<setInstallerVariableFromRegEx name="downloadedFileName" text="${downloadedFileName}">
20+
<pattern>.app.tgz|.app|.exe|.run</pattern>
21+
</setInstallerVariableFromRegEx>
22+
<iniFileGet file="${system_temp_directory}/autoupdater/update.ini" section="Update">
23+
<key>bncert_tool_ui</key>
24+
<variable>toolUI</variable>
25+
</iniFileGet>
26+
<iniFileGet file="${system_temp_directory}/autoupdater/update.ini" section="Update">
27+
<key>bncert_tool_installdir</key>
28+
<variable>toolInstalldir</variable>
29+
</iniFileGet>
30+
<dirName path="${downloadedFilePath}" variable="downloadFolder"/>
31+
<createDirectory path="${toolInstalldir}/bncert"/>
32+
<createSymLink linkName="${toolInstalldir}/bncert-tool" target="${toolInstalldir}/bncert/${downloadedFileName}.${platform_exec_suffix}" abortOnError="0" showMessageOnError="0"/>
33+
<renameFile ruleEvaluationLogic="or" origin="${downloadedFilePath}" destination="${toolInstalldir}/bncert/">
34+
</renameFile>
35+
<if>
36+
<conditionRuleList>
37+
<compareText text="${toolUI}" logic="equals" value="gui"/>
38+
</conditionRuleList>s
39+
<actionList>
40+
<runProgram workingDirectory="${system_temp_directory}" abortOnError="0" showMessageOnError="0">
41+
<program>${toolInstalldir}/bncert/${downloadedFileName}.${platform_exec_suffix}</program>
42+
<programArguments>&amp;</programArguments>
43+
<ruleList>
44+
<platformTest type="linux"></platformTest>
45+
</ruleList>
46+
</runProgram>
47+
</actionList>
48+
<elseActionList>
49+
<exit exitCode="0"/>
50+
</elseActionList>
51+
</if>
52+
</postUpdateDownloadActionList>
53+
</autoUpdateProject>

0 commit comments

Comments
 (0)