mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-21 10:31:36 +01:00
Add gitea in ssh group permission in scripts
This commit is contained in:
parent
ffa2416256
commit
8dc7f700de
@ -68,12 +68,6 @@ Host domain.tld
|
||||
port 2222 # change this with the port you use
|
||||
```
|
||||
|
||||
You will also need to add the `gitea` user in the ssh permission with this command:
|
||||
|
||||
```
|
||||
sudo adduser gitea ssh.app
|
||||
```
|
||||
|
||||
### Architecture
|
||||
|
||||
This package is compatible with amd64, i386 and arm. The package will try to detect it with the command uname -m and fail if it can't detect the architecture. If that happens please open an issue describing your hardware and the result of the command `uname -m`.
|
||||
|
@ -66,6 +66,8 @@ ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass"
|
||||
# Add users
|
||||
ynh_script_progression --message="Configuring system user..."
|
||||
ynh_system_user_create --username=$app --home_dir=/home/$app --use_shell
|
||||
# Add ssh permission for user gitea
|
||||
adduser gitea ssh.app
|
||||
|
||||
# create needed directories
|
||||
create_dir
|
||||
|
@ -230,6 +230,9 @@ fi
|
||||
ynh_script_progression --message="Register gitea service..."
|
||||
yunohost service add "$app" --log "/var/log/$app/gitea.log"
|
||||
|
||||
# Add ssh permission for user gitea
|
||||
adduser gitea ssh.app
|
||||
|
||||
# Set permissions
|
||||
ynh_script_progression --message="Protecting directory"
|
||||
set_permission
|
||||
|
Loading…
Reference in New Issue
Block a user