Compare commits
6 Commits
pkg/dev/eo
...
0d517df3ee
Author | SHA1 | Date | |
---|---|---|---|
0d517df3ee | |||
93b96fb8e0 | |||
5fa6632153 | |||
e42436c303 | |||
22525b938a | |||
054bdf790a |
@ -16,7 +16,7 @@ HOMEDIR="${WKDIR}/${USER}"
|
|||||||
OS="linux"
|
OS="linux"
|
||||||
ARCH="amd64"
|
ARCH="amd64"
|
||||||
|
|
||||||
APPVERSION="1.8.2"
|
APPVERSION="1.8.3"
|
||||||
APPNAME="gitea"
|
APPNAME="gitea"
|
||||||
APPBINARY="gitea"
|
APPBINARY="gitea"
|
||||||
APPSIG="7C9E68152594688862D62AF62D9AE806EC1592E2"
|
APPSIG="7C9E68152594688862D62AF62D9AE806EC1592E2"
|
||||||
@ -42,25 +42,20 @@ function configure_proxy {
|
|||||||
|
|
||||||
function create_app_dir {
|
function create_app_dir {
|
||||||
|
|
||||||
if [[ ! -d ${APPDIR} ]]
|
mkdir -p "${APPDIR}"
|
||||||
then
|
chown ${USER}:${GROUP} "${APPDIR}" -R
|
||||||
mkdir -p ${APPDIR}
|
|
||||||
chown ${USER}:${GROUP} ${APPDIR} -R
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create app structure
|
# Create app structure
|
||||||
mkdir -p ${APPDIR}/{custom,data,indexers,public,log}
|
mkdir -p ${APPDIR}/{custom,data,indexers,public,log}
|
||||||
chown ${USER}:${GROUP} ${APPDIR}/{data,indexers,log}
|
chown ${USER}:${GROUP} ${APPDIR}/{data,indexers,log}
|
||||||
chmod 750 ${APPDIR}/{data,indexers,log}
|
chmod 750 ${APPDIR}/{data,indexers,log}
|
||||||
mkdir -p ${APPCONFDIR}
|
mkdir -p "${APPCONFDIR}"
|
||||||
chown root:${GROUP} ${APPCONFDIR}
|
chown root:${GROUP} ${APPCONFDIR}
|
||||||
chmod 770 ${APPCONFDIR}
|
chmod 770 "${APPCONFDIR}"
|
||||||
|
|
||||||
|
mkdir -p "${APPBINDIR}"
|
||||||
|
chown ${USER}:${GROUP} "${APPBINDIR}"
|
||||||
|
|
||||||
if [[ ! -d ${APPBINDIR} ]]
|
|
||||||
then
|
|
||||||
mkdir -p ${APPBINDIR}
|
|
||||||
chown ${USER}:${GROUP} ${APPBINDIR}
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_user_and_group {
|
function create_user_and_group {
|
||||||
|
@ -34,8 +34,7 @@ createscript: "/usr/share/eole/db/gitea/gen/00-create-gitea-db.sql"
|
|||||||
%set cnt_prefix = %%getVar('container_path_reseau', '')
|
%set cnt_prefix = %%getVar('container_path_reseau', '')
|
||||||
pwd_files:
|
pwd_files:
|
||||||
- {file: '%%cnt_prefix/etc/gitea/conf/app.ini',
|
- {file: '%%cnt_prefix/etc/gitea/conf/app.ini',
|
||||||
pattern: 'PASSWD = ',
|
pattern: 'PASSWD = `',
|
||||||
end_pattern: '',
|
end_pattern: '`',
|
||||||
owner: 'root:gitservice',
|
owner: 'root:gitservice',
|
||||||
mod: '660' }
|
mod: '660' }
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ HOST = %%{gitea_dbserver}:%%{gitea_dbport}
|
|||||||
%end if
|
%end if
|
||||||
NAME = gitea
|
NAME = gitea
|
||||||
USER = gitea
|
USER = gitea
|
||||||
PASSWD = gitea1234
|
PASSWD = `gitea1234`
|
||||||
; For "postgres" only, either "disable", "require" or "verify-full"
|
; For "postgres" only, either "disable", "require" or "verify-full"
|
||||||
SSL_MODE = disable
|
SSL_MODE = disable
|
||||||
; For "sqlite3" only
|
; For "sqlite3" only
|
||||||
|
Reference in New Issue
Block a user