mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-24 20:11:35 +01:00
commit
349992d4f3
@ -74,6 +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= "/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"
|
||||||
}
|
}
|
||||||
|
@ -72,20 +72,18 @@ 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
|
||||||
cp -a ../conf/app.ini $final_path
|
wget https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64 -O $final_path/gitea
|
||||||
cd $final_path
|
|
||||||
wget https://github.com/go-gitea/gitea/releases/download/v1.3.3/gitea-1.3.3-linux-amd64
|
|
||||||
mv gitea-1.3.3-linux-amd64 gitea
|
|
||||||
|
|
||||||
# Start gitea for building mysql tables
|
|
||||||
systemctl start "$app".service
|
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
set_permission
|
set_permission
|
||||||
|
|
||||||
|
# Start gitea for building mysql tables
|
||||||
|
systemctl start "$app".service
|
||||||
|
|
||||||
# Wait till login_source mysql table is created
|
# Wait till login_source mysql table is created
|
||||||
while ! $(ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" <<< "SELECT * FROM login_source;" &>/dev/null)
|
while ! $(ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" <<< "SELECT * FROM login_source;" &>/dev/null)
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user