Explorar el Código

Pongo bien permisos

Tino hace 1 mes
padre
commit
afa2bc83ff
Se han modificado 2 ficheros con 42 adiciones y 0 borrados
  1. 40 0
      README.tex
  2. 2 0
      gogs-statefulset.yaml

+ 40 - 0
README.tex

@@ -0,0 +1,40 @@
+\documentclass{article}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[spanish]{babel}
+\usepackage{graphicx}
+\usepackage{listings}
+\usepackage{xcolor}
+\usepackage{hyperref}
+
+\lstset{
+    backgroundcolor=\color{gray!10},
+    basicstyle=\ttfamily\small,
+    breaklines=true,
+    frame=single,
+    language=bash,
+}
+
+\title{GogsPG}
+\author{}
+\date{}
+
+\begin{document}
+
+\maketitle
+
+\section{Restaurar un zip}
+
+\subsection{Primero la base de datos}
+
+\begin{lstlisting}
+./gogs restore --database-only --config=/data/gogs/conf/app.ini --from=/data/gogs-backup-20260818105724.zip
+\end{lstlisting}
+
+Si da error al entrar en algún proyecto, desde el directorio \texttt{/data/git/gogs-repositories}:
+
+\begin{lstlisting}[language={}]
+su -s /bin/bash git -c "git config --global --add safe.directory '*'"
+\end{lstlisting}
+
+\end{document}

+ 2 - 0
gogs-statefulset.yaml

@@ -16,6 +16,8 @@ spec:
       labels:
         app: gogs-app
     spec:
+      securityContext:
+        fsGroup: 1000     # <--- Esto solucionará el fallo de "permission denied"
       containers:
       - image: gogs/gogs
         imagePullPolicy: IfNotPresent