Skip to content

Commit

Permalink
change namings everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
compgeniuses committed Feb 12, 2024
1 parent 51646b4 commit efe9b91
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion imageroot/actions/configure-module/80start_services
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ exec 1>&2

touch smarthost.env

systemctl --user enable --now kickstart.service
systemctl --user enable --now docuseal.service
10 changes: 5 additions & 5 deletions imageroot/actions/restore-module/40restore_database
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ set -e -o pipefail
exec 1>&2 # Redirect any output to the journal (stderr)

mkdir -vp restore
cat - >restore/kickstart_restore.sh <<'EOS'
cat - >restore/docuseal_restore.sh <<'EOS'
# Read dump file from standard input:
pg_restore --no-owner --no-privileges -U postgres -d kickstart
pg_restore --no-owner --no-privileges -U postgres -d docuseal
ec=$?
docker_temp_server_stop
exit $ec
Expand All @@ -29,9 +29,9 @@ podman run \
--replace --name=restore_db \
--env POSTGRES_USER=postgres \
--env POSTGRES_PASSWORD=Nethesis,1234 \
--env POSTGRES_DB=kickstart \
--env POSTGRES_DB=docuseal \
--env TZ=UTC \
"${POSTGRES_IMAGE}" < kickstart.pg_dump
"${POSTGRES_IMAGE}" < docuseal.pg_dump

# If the restore is successful, clean up:
rm -rfv restore/ kickstart.pg_dump
rm -rfv restore/ docuseal.pg_dump
2 changes: 1 addition & 1 deletion imageroot/bin/discover-smarthost
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ envfile = "smarthost.env"
# Using .tmp suffix: do not overwrite the target file until the new one is
# saved to disk:
with open(envfile + ".tmp", "w") as efp:
# HINT for kickstart: adjust variable names as needed
# HINT for docuseal: adjust variable names as needed
print(f"SMTP_ENABLED={'1' if smtp_settings['enabled'] else ''}", file=efp)
print(f"SMTP_HOST={smtp_settings['host']}", file=efp)
print(f"SMTP_PORT={smtp_settings['port']}", file=efp)
Expand Down
2 changes: 1 addition & 1 deletion imageroot/bin/module-cleanup-state
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#

rm -vf kickstart.pg_dump
rm -vf docuseal.pg_dump
4 changes: 2 additions & 2 deletions imageroot/bin/module-dump-state
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

set -e

echo "Dumping kickstart postgres database"
podman exec postgresql-app pg_dump -U postgres --format=c kickstart > kickstart.pg_dump
echo "Dumping docuseal postgres database"
podman exec postgresql-app pg_dump -U postgres --format=c docuseal > docuseal.pg_dump
4 changes: 2 additions & 2 deletions imageroot/etc/state-include.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# List here what you want to save during backup : volumes or file Path


state/kickstart.sql
volumes/kickstart-app
state/docuseal.sql
volumes/docuseal-app

2 changes: 1 addition & 1 deletion imageroot/events/smarthost-changed/10reload_services
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

set -e

systemctl --user try-reload-or-restart kickstart.service
systemctl --user try-reload-or-restart docuseal.service
2 changes: 1 addition & 1 deletion imageroot/update-module.d/20restart
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ set -e
# Redirect any output to the journal (stderr)
exec 1>&2

systemctl --user try-restart kickstart.service
systemctl --user try-restart docuseal.service
4 changes: 2 additions & 2 deletions ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"title": "Settings",
"configure_instance": "Configure {instance}",
"save": "Save",
"kickstart_fqdn": "kickstart hostname (FQDN)",
"docuseal_fqdn": "docuseal hostname (FQDN)",
"lets_encrypt": "Request LE Certificate",
"http_to_https": "Force HTTPS",
"enabled": "Enabled",
"disabled": "Disabled",
"advanced": "Advanced",
"configuring": "Configuring",
"instance_configuration": "Configure kickstart",
"instance_configuration": "Configure docuseal",
"domain_already_used_in_traefik": "Domain already used in traefik"
},
"about": {
Expand Down
18 changes: 9 additions & 9 deletions ui/public/metadata.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "kickstart",
"name": "docuseal",
"description": {
"en": "My kickstart module"
"en": "DocuSeal: Open source document filling and signing"
},
"categories": [],
"categories": ["collaboration"],
"authors": [
{
"name": "Name Surname",
"email": "[email protected]"
"name": "Martin Bhuong",
"email": "[email protected]"
}
],
"docs": {
"documentation_url": "https://docs.kickstart.com/",
"bug_url": "https://github.com/NethServer/dev",
"code_url": "https://github.com/author/ns8-kickstart"
"documentation_url": "https://www.docuseal.co/docs/",
"bug_url": "https://github.com/compgeniuses/docuseal",
"code_url": "https://github.com/compgeniuses/docuseal"
},
"source": "ghcr.io/nethserver/kickstart"
"source": "ghcr.io/compgeniuses/docuseal"
}
4 changes: 2 additions & 2 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<cv-tile light>
<cv-form @submit.prevent="configureModule">
<cv-text-input
:label="$t('settings.kickstart_fqdn')"
placeholder="kickstart.example.org"
:label="$t('settings.docuseal_fqdn')"
placeholder="docuseal.example.org"
v-model.trim="host"
class="mg-bottom"
:invalid-message="$t(error.host)"
Expand Down

0 comments on commit efe9b91

Please sign in to comment.