Compare commits
2 Commits
master
...
add-suppor
Author | SHA1 | Date |
---|---|---|
Rafi59 | c9f5c10ddb | |
Rafi59 | 20bf330dfe |
|
@ -28,6 +28,21 @@ fi
|
|||
# DEFINE ALL COMMON FONCTIONS
|
||||
#=================================================
|
||||
|
||||
get_source() {
|
||||
if [ "$architecture" = 'x86-64' ]
|
||||
then
|
||||
wget -O gitea https://dl.gitea.io/gitea/1.4.2/gitea-1.4.2-linux-amd64 $final_path
|
||||
fi
|
||||
if [ "$architecture" = 'i386' ]
|
||||
then
|
||||
wget -O gitea https://dl.gitea.io/gitea/1.4.2/gitea-1.4.2-linux-386 $final_path
|
||||
fi
|
||||
if [ "$architecture" = 'arm' ]
|
||||
then
|
||||
wget -O gitea https://dl.gitea.io/gitea/1.4.2/gitea-1.4.2-linux-arm-7 $final_path
|
||||
fi
|
||||
}
|
||||
|
||||
create_dir() {
|
||||
mkdir -p "$final_path/data"
|
||||
mkdir -p "$final_path/custom/conf"
|
||||
|
|
|
@ -75,7 +75,7 @@ config_nginx
|
|||
config_gitea
|
||||
|
||||
# Install gitea
|
||||
wget -O gitea https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64 $final_path/gitea
|
||||
get_source $architecture
|
||||
|
||||
# Set permissions
|
||||
set_permission
|
||||
|
@ -112,4 +112,5 @@ ynh_use_logrotate "/var/log/$app"
|
|||
|
||||
# Reload services
|
||||
ynh_check_starting "Serving [::]:$port with pid" "/var/log/$app/gitea.log"
|
||||
systemctl gitea restart
|
||||
systemctl gitea restart
|
||||
systemctl nginx reload
|
Loading…
Reference in New Issue