21-07-2020
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Créer le paquet:
|
#### Créer le paquet:
|
||||||
|
|
||||||
[Gitea-spk](https://github.com/flipswitchingmonkey/gitea-spk)
|
[Gitea-spk](https://github.com/flipswitchingmonkey/gitea-spk)
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Permissions -> Utilisateurs du système interne -> gitea lecture /écriture
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Accéder au site:
|
#### Accéder au site:
|
||||||
|
|
||||||
http://localhost:3000 . Si Safari ne peut y accéder parce que la connexion n'est pas sécurisée (*HSTS Policy*):
|
http://localhost:3000 . Si Safari ne peut y accéder parce que la connexion n'est pas sécurisée (*HSTS Policy*):
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ Le fichier de config: `/usr/local/gitea/gitea/custom/conf/app.ini`
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Créer un repo sur sur le serveur gitea:
|
#### Créer un repo sur sur le serveur gitea:
|
||||||
|
|
||||||
Il est placé ici: `/volume1/gitea/gitea/gitea-repositories/bruno/test.git`
|
Il est placé ici: `/volume1/gitea/gitea/gitea-repositories/bruno/test.git`
|
||||||
|
|
||||||
@@ -82,3 +82,57 @@ $ ~/Documents/Git git clone bruno@dsm916e:/volume1/gitea/gitea/gitea-repositorie
|
|||||||
|
|
||||||
git remote add origin bruno@dsm916e:/volume1/Repositories/wp2012.git
|
git remote add origin bruno@dsm916e:/volume1/Repositories/wp2012.git
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#### Mise-à-jour:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
GITEA_INSTALLED=`/volume1/@appstore/Gitea/gitea/gitea --version | cut -d \ -f 3`
|
||||||
|
|
||||||
|
LATEST_URL=`curl -Ls -o /dev/null -w %{url_effective} https://github.com/go-gitea/gitea/releases/latest`
|
||||||
|
#https://github.com/go-gitea/gitea/releases/tag/v1.11.3
|
||||||
|
|
||||||
|
echo LATEST_URL = ${LATEST_URL}
|
||||||
|
GITEA_VERSION=${LATEST_URL##*/v}
|
||||||
|
|
||||||
|
if [ "${GITEA_INSTALLED}" == "${GITEA_VERSION}" ]; then
|
||||||
|
echo "No update available..."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Install
|
||||||
|
echo "Installed: "${GITEA_INSTALLED}
|
||||||
|
echo "Latest: "${GITEA_VERSION}
|
||||||
|
rm -rf /tmp/gitea
|
||||||
|
mkdir /tmp/gitea
|
||||||
|
cd /tmp/gitea
|
||||||
|
echo "Clone gitea-spk..."
|
||||||
|
git clone https://github.com/flipswitchingmonkey/gitea-spk.git
|
||||||
|
cd gitea-spk
|
||||||
|
|
||||||
|
echo "Download latest gitea..."
|
||||||
|
DOWNLOAD_URL=https://github.com/go-gitea/gitea/releases/download/v${GITEA_VERSION}/gitea-${GITEA_VERSION}-linux-amd64.xz
|
||||||
|
#echo ${DOWNLOAD_URL}
|
||||||
|
|
||||||
|
# sudo opkg install wget (sinon pas de https)
|
||||||
|
wget ${DOWNLOAD_URL}
|
||||||
|
# sudo opkg install xz
|
||||||
|
xz --decompress gitea-*.xz
|
||||||
|
# sudo opkg install tar (sinon tar: unrecognized option '--exclude=INFO.in')
|
||||||
|
echo "Create spk package..."
|
||||||
|
./create_spk.sh
|
||||||
|
|
||||||
|
echo "Install spk package..."
|
||||||
|
sudo synoservice --stop pkgctl-Gitea
|
||||||
|
|
||||||
|
#echo "Backup gitea mysql database..."
|
||||||
|
#sudo mysqldump -u root admin_gitea > /tmp/$filename
|
||||||
|
|
||||||
|
sudo synoservice --status pkgctl-Gitea
|
||||||
|
sudo synopkg install /tmp/gitea/gitea-spk/gitea-${GITEA_VERSION}-linux-amd64.spk
|
||||||
|
sudo synoservice --start pkgctl-Gitea
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ $synoservice -restart crond
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Tester la tache dans le terminal:
|
<u>Tester la tache dans le terminal:</u>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# ok
|
# ok
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ On peut le placer n'importe où.
|
|||||||
Il contient les paires d'identifiants / mots de passe
|
Il contient les paires d'identifiants / mots de passe
|
||||||
|
|
||||||
```http
|
```http
|
||||||
bruno:$2y$10$eoOcCeh6lKR.yLc7B44bD.9AAGI90XyYaXZrSbzdswKuL6Q5E9oX2
|
bruno:$2y$10$eoOcCehAbCdEfGhIj.9AAGI90XyYaXZrSbzdswKuL6Q5E9oX2
|
||||||
```
|
```
|
||||||
|
|
||||||
http://www.htaccesstools.com/htpasswd-generator
|
http://www.htaccesstools.com/htpasswd-generator
|
||||||
Reference in New Issue
Block a user