mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
[fix] ensure ffsync user is created before it is used
This commit is contained in:
parent
686d5850b0
commit
7df9f017d7
1 changed files with 3 additions and 1 deletions
|
@ -33,6 +33,9 @@ then
|
|||
sudo swapon $tmp_swap_file
|
||||
fi
|
||||
|
||||
# Create ffsync user
|
||||
sudo useradd ffsync -d $final_path
|
||||
|
||||
# Copy files to the right place
|
||||
final_path=/opt/yunohost/ffsync
|
||||
sudo mkdir -p $final_path
|
||||
|
@ -43,7 +46,6 @@ sudo touch /var/log/ffsync.log
|
|||
sudo chown ffsync /var/log/ffsync.log
|
||||
|
||||
# Set permissions to ffsync directory
|
||||
sudo useradd ffsync -d $final_path
|
||||
sudo chown ffsync:ffsync -R $final_path
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
|
|
Loading…
Add table
Reference in a new issue