Merge pull request #39 from YunoHost-Apps/ssh_permission

Add gitea in ssh group permission in scripts
This commit is contained in:
Josue-T 2022-01-25 07:44:56 +01:00 committed by GitHub
commit 6f253f97e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View File

@ -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`.

View File

@ -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

View File

@ -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