fdroid, begin maintaining a consistent keystore file.
This commit is contained in:
1 parent
665122faab
commit
db1c85db20
3 files changed
+20
No files matched your search
@@ -202,6 +202,10 @@ RUN [ ! -z "$REPO_ICON" ] && \
|
|||||||
|
|
||||||
RUN fdroid update -c
|
RUN fdroid update -c
|
||||||
|
|
||||||
|
# Install Keystore #
|
||||||
|
|
||||||
|
COPY files/keystore.p12 "$FDROID"/keystore.p12
|
||||||
|
|
||||||
# Publish Repo Contents to Web Root #
|
# Publish Repo Contents to Web Root #
|
||||||
|
|
||||||
RUN cp -rv "$FDROID" "$WEBROOT/"
|
RUN cp -rv "$FDROID" "$WEBROOT/"
|
||||||
|
|||||||
Binary file not shown.
@@ -13,5 +13,21 @@ source $DIR/.env
|
|||||||
# Create folders.
|
# Create folders.
|
||||||
mkdir -pv $FDROID_DATA
|
mkdir -pv $FDROID_DATA
|
||||||
|
|
||||||
|
if [[ ! -f files/leystore.p12 ]]; then
|
||||||
|
echo "ERROR: Keystore not detected. Please create it using 'keytool', like this:"
|
||||||
|
cat <<- EOF
|
||||||
|
|
||||||
|
keytool -genkeypair -v \
|
||||||
|
-storetype PKCS12 \
|
||||||
|
-keystore keystore.p12 \
|
||||||
|
-alias fdroid \
|
||||||
|
-keyalg RSA -keysize 4096 \
|
||||||
|
-validity 10000 \
|
||||||
|
-dname "CN=TEST, OU=F-Droid"
|
||||||
|
|
||||||
|
EOF
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Finish successfully.
|
# Finish successfully.
|
||||||
exit 0
|
exit 0
|
||||||
Reference in new issue
Block a user