mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-12-03 16:26:53 +01:00
Merge pull request #39 from YunoHost-Apps/ssh_permission
Add gitea in ssh group permission in scripts
This commit is contained in:
commit
6f253f97e6
@ -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