mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
[fix] Out of su
This commit is contained in:
parent
6fe26b2bf1
commit
d75618a0ab
1 changed files with 2 additions and 2 deletions
|
@ -50,10 +50,10 @@ PULLCOMMANDS
|
|||
|
||||
# Switch branch to tagged release
|
||||
cd $final_path/live
|
||||
sudo su - $app <<SWITCHCOMMANDS
|
||||
pushd ~/live
|
||||
url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | sort -r | head -1 | cut -d\" -f4)
|
||||
version=$(echo $url | cut -d/ -f8)
|
||||
sudo su - $app <<SWITCHCOMMANDS
|
||||
pushd ~/live
|
||||
git checkout $version
|
||||
SWITCHCOMMANDS
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue