diff options
| author | nemsia <nemsia@nemsia.org> | 2017-05-28 17:16:45 +0200 |
|---|---|---|
| committer | nemsia <nemsia@nemsia.org> | 2017-05-28 17:16:45 +0200 |
| commit | 890b3f2328643801cf6d46fdb8ffc129739490f7 (patch) | |
| tree | 0e31c6837f5815cee1e4752d8ab6ad59efa28b46 /scripts/install | |
| parent | dc0d11084c85d5251474f5a971b16760b857d6a3 (diff) | |
| parent | 097bd9dec81c64fe8830a8fe7863451056e13def (diff) | |
| download | mastodon_ynh-890b3f2328643801cf6d46fdb8ffc129739490f7.tar.gz mastodon_ynh-890b3f2328643801cf6d46fdb8ffc129739490f7.tar.bz2 mastodon_ynh-890b3f2328643801cf6d46fdb8ffc129739490f7.zip | |
Merge remote-tracking branch 'refs/remotes/YunoHost-Apps/master'
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install index 0c71505..1634c52 100644 --- a/scripts/install +++ b/scripts/install @@ -41,7 +41,7 @@ ynh_app_setting_set $app language $language sudo adduser $app --home /opt/$app --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password --disabled-login # Install debian package -ynh_package_install imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https +ynh_package_install imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https pkg-config libprotobuf-dev protobuf-compiler # Install redis package ynh_package_install redis-server redis-tools @@ -66,7 +66,7 @@ ynh_app_setting_set $app final_path $final_path # Install de Node.js pushd /opt -curl -sL https://deb.nodesource.com/setup_4.x | sudo bash - +curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - sudo apt-get -y install nodejs # Install Yarn @@ -95,9 +95,11 @@ CLONECOMMANDS # Switch branch to tagged release cd $final_path/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 $(git tag | tail -n 1) +git checkout $version SWITCHCOMMANDS # Be king rewind (/var/cache/yunohost/from_file/scripts) |
