Compare commits

...

6 Commits

Author SHA1 Message Date
Frogg 9ce80067c4 - cmd fix 2026-05-18 23:52:04 +02:00
Frogg 7b6d0cfe81 - text 2026-05-18 23:51:53 +02:00
Frogg 2c0c930f32 - amelioration du script ca renew 2026-05-18 00:28:05 +02:00
Frogg 7749fa6d61 - amelioration du script ca renew 2026-05-18 00:28:00 +02:00
Frogg 42f0ab1488 - ajout de commande 2026-05-18 00:27:26 +02:00
Frogg a15bb78873 - ajout d emote icon 2026-05-18 00:27:11 +02:00
4 changed files with 16 additions and 7 deletions

View File

@ -16,7 +16,7 @@ CMD_LIST_CONFIG_JSON=$(cat <<EOF
"section": "SYSTEM",
"items": [
{"label": "Edit main cron", "cmd": "crontab -e", "bin": "crontab"},
{"label": "Restart service", "cmd": "/etc/init.d/\${name} restart"},
{"label": "Restart service", "cmd": "/etc/init.d/service_name restart"},
{"label": "Display journal", "cmd": "journalctl -xe", "bin": "journalctl"},
{"label": "Reload .bashrc", "cmd": "source ~/.bashrc"}
]
@ -45,7 +45,8 @@ CMD_LIST_CONFIG_JSON=$(cat <<EOF
"items": [
{"label": "Port debug", "cmd": "ss -tulnw | column -t"},
{"label": "Port tcp opened ext", "cmd": "ss -tlnw | grep -v -E '(127\.0\.0\.1|::1)' | column -t"},
{"label": "Unlock 1024 port for not Root user", "cmd": "setcap 'cap_net_bind_service=+ep' /usr/lib/jellyfin/bin/jellyfin"}
{"label": "Unlock 1024 port for not Root user", "cmd": "setcap 'cap_net_bind_service=+ep' /usr/lib/jellyfin/bin/jellyfin"},
{"label": "Test SSL Validity", "cmd" : "openssl x509 -in /var/lib/step-ca/.step/certs/root_ca.crt -noout -dates"}
]
},
{
@ -66,7 +67,6 @@ CMD_LIST_CONFIG_JSON=$(cat <<EOF
{"label": "Restart VM", "cmd": "pct stop ID && pct start ID","bin": "pct"}
]
}
]
EOF
)

View File

@ -34,4 +34,4 @@ color_secure() {
# Les Asci sympas :
# 🐧 🌀 🍥 ✅ ❎ ❌ ⭕ ℹ️🔄🚨🆔 🆗 🆕 🆙 ✨ 🚀 🔧
# 🐧 🌀 🍥 ✅ ❎ ❌ ⭕ ℹ️🔄🚨🆔 🆗 🆕 🆙 ✨ 🚀 🔧 👍

View File

@ -644,7 +644,7 @@ EOF"
do_deb_sys_cert_install_ca_server(){
local full_command="${WELCOME_SCRIPT_PATH}/script/ca_server_renew.sh"
msg_info "Ajout des drtois d execution du script"
msg_info "Ajout des droits d execution du script"
chmod +x "$full_command"
msg_info "Renouvellement du certificat"
@ -986,7 +986,7 @@ do_deb_sys_cert_install(){
# Installation du cron
# ------------------------------------------------------------------
update_cron_marker "$CONFIG_DEB_INSTALL_DEFAULT_CA_CRON" "0 0 1 * * $full_command"
update_cron_marker "$CONFIG_DEB_INSTALL_DEFAULT_CA_CRON" "0 0 * * 0 $full_command"
# ------------------------------------------------------------------
# Redémarrage final (sécurité)

View File

@ -1,4 +1,13 @@
systemctl stop step-ca
step certificate create "Frogg.home CA Intermediate CA" /var/lib/step-ca/.step/certs/intermediate_ca.crt /var/lib/step-ca/.step/secrets/intermediate_ca_key --profile intermediate-ca --ca /var/lib/step-ca/.step/certs/root_ca.crt --ca-key /var/lib/step-ca/.step/secrets/root_ca_key --not-after 87600h --ca-password-file /var/lib/step-ca/.step/password.txt --password-file /var/lib/step-ca/.step/password.txt --force
step certificate create "Frogg.home CA Intermediate CA" /var/lib/step-ca/.step/certs/intermediate_ca.crt /var/lib/step-ca/.step/secrets/intermediate_ca_key \
--profile intermediate-ca \
--ca /var/lib/step-ca/.step/certs/root_ca.crt \
--ca-key /var/lib/step-ca/.step/secrets/root_ca_key \
--not-after 8760h \
--ca-password-file /var/lib/step-ca/.step/password.txt \
--password-file /var/lib/step-ca/.step/password.txt \
--force
chown -R step:step /var/lib/step-ca/
systemctl start step-ca