diff options
| author | yalh76 <yalh@yahoo.com> | 2019-04-12 03:15:40 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-04-12 03:15:40 +0200 |
| commit | ea966973f58b2cd991335c6bc7e7eaec07e7fabc (patch) | |
| tree | a05a07df05ef3115d08ef9185f11e9ce62772a11 /scripts/install | |
| parent | 5e9e9ac4e43cad177181f538aef9f2d0010be42c (diff) | |
| download | mastodon_ynh-ea966973f58b2cd991335c6bc7e7eaec07e7fabc.tar.gz mastodon_ynh-ea966973f58b2cd991335c6bc7e7eaec07e7fabc.tar.bz2 mastodon_ynh-ea966973f58b2cd991335c6bc7e7eaec07e7fabc.zip | |
Revert "Merge pull request #3 from alexAubin/patch-1"
This reverts commit 90a03313093f3e9eecf10115e1b6fddc3cb7ea89, reversing
changes made to df2e2fb226a6b08f70dfdaff32abde1338d1a292.
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/scripts/install b/scripts/install index f68c97d..e62b078 100644 --- a/scripts/install +++ b/scripts/install @@ -44,13 +44,6 @@ ynh_print_info "Validating installation parameters..." final_path=/var/www/$app test ! -e "$final_path" || ynh_die "This path already contains a folder" -# TODO : to be factorized into a helper someday ? ;) -MEM=$(free | grep "^Mem" | awk '{print $2}') -SWAP=$(free | grep "^Swap" | awk '{print $2}') -TOTAL_MEM_AND_SWAP=$(( ( $MEM+$SWAP ) / 1024 )) # In MB - -[[ $TOTAL_MEM_AND_SWAP -gt 2500 ]] || ynh_die "You need at least 2500 Mo of RAM+Swap to install Mastodon. Please consult the README to learn how to add swap." - # Normalize the url path syntax path_url=$(ynh_normalize_url_path $path_url) |
