mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-23 11:31:35 +01:00
Improve install and common.sh
This commit is contained in:
parent
e534260a15
commit
28137a4698
@ -48,7 +48,7 @@ config_nginx() {
|
||||
config_gitea() {
|
||||
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" = "/" ]
|
||||
then
|
||||
@ -74,7 +74,7 @@ set_permission() {
|
||||
chown -R $app:$app "/home/$app"
|
||||
chown -R $app:$app "/var/log/$app"
|
||||
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= "/var/log/$app"
|
||||
}
|
||||
|
@ -72,11 +72,10 @@ ynh_add_systemd_config
|
||||
config_nginx
|
||||
|
||||
# Configure gitea with app.ini file
|
||||
cp -a ../conf/app.ini $final_path
|
||||
config_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_permission
|
||||
|
Loading…
Reference in New Issue
Block a user