diff options
| author | yalh76 <yalh@yahoo.com> | 2020-05-26 13:18:02 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2020-05-26 13:18:02 +0200 |
| commit | 3d713af143776d074d2f37cb0689d777aa632fdf (patch) | |
| tree | 599ebd2041dbaa97ccc356b9f189b1fd7518ee27 /scripts/restore | |
| parent | 80b83a846130e81af1ba20ee5b006d80367edf31 (diff) | |
| download | mastodon_ynh-3d713af143776d074d2f37cb0689d777aa632fdf.tar.gz mastodon_ynh-3d713af143776d074d2f37cb0689d777aa632fdf.tar.bz2 mastodon_ynh-3d713af143776d074d2f37cb0689d777aa632fdf.zip | |
Moving from ynh_check_ram to ynh_get_ram
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/restore b/scripts/restore index dbcd5cb..ed0b27d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -10,7 +10,6 @@ source ../settings/scripts/_common.sh source ../settings/scripts/ynh_install_ruby__2 source ../settings/scripts/ynh_add_swap -source ../settings/scripts/ynh_check_ram source /usr/share/yunohost/helpers #================================================= @@ -87,8 +86,7 @@ chown -R $app: $final_path #================================================= ynh_script_progression --message="Adding swap if needed..." --weight=4 -total_memory=$(ynh_check_ram) -total_swap=$(ynh_check_ram --only_swap) +total_memory=$(ynh_get_ram --total) swap_needed=0 if [ $total_memory -lt 2560 ]; then |
