Merge branch 'testing' into 'master'

Improve install

See merge request YunoHost-Apps/gitea_ynh!7
This commit is contained in:
Rafi59 2018-06-07 13:00:27 +02:00
commit 9a9a1030ca
2 changed files with 3 additions and 4 deletions

View File

@ -48,7 +48,7 @@ config_nginx() {
config_gitea() { config_gitea() {
ynh_backup_if_checksum_is_different "$final_path/custom/conf/app.ini" ynh_backup_if_checksum_is_different "$final_path/custom/conf/app.ini"
cp "$final_path/app.ini" "$final_path/custom/conf" cp ../conf/app.ini "$final_path/custom/conf"
if [ "$path_url" = "/" ] if [ "$path_url" = "/" ]
then then
@ -74,7 +74,7 @@ set_permission() {
chown -R $app:$app "/home/$app" chown -R $app:$app "/home/$app"
chown -R $app:$app "/var/log/$app" chown -R $app:$app "/var/log/$app"
chmod u=rwX,g=rX,o= "$final_path" chmod u=rwX,g=rX,o= "$final_path"
chmod u=rwx,g=rx,o= "$final_path/gitea" chmod u=rwx,g=rx,o= "$final_path/$app"
chmod u=rwX,g=rX,o= "/home/$app" chmod u=rwX,g=rX,o= "/home/$app"
chmod u=rwX,g=rX,o= "/var/log/$app" chmod u=rwX,g=rX,o= "/var/log/$app"
} }

View File

@ -72,11 +72,10 @@ ynh_add_systemd_config
config_nginx config_nginx
# Configure gitea with app.ini file # Configure gitea with app.ini file
cp -a ../conf/app.ini $final_path
config_gitea config_gitea
# Install gitea # Install gitea
wget https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64 -O $final_path/gitea wget -O gitea https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64 $final_path/gitea
# Set permissions # Set permissions
set_permission set_permission