Server IP : 52.91.253.208 / Your IP : 3.141.46.130 [ Web Server : Apache System : Linux ip-172-26-9-9 4.19.0-25-cloud-amd64 #1 SMP Debian 4.19.289-1 (2023-07-24) x86_64 User : daemon ( 1) PHP Version : 7.3.18 Disable Function : NONE Domains : 3 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/scripts/init/ |
Upload File : |
#!/bin/sh # # Creates swap file in micro instances # Copyright 2020 Bitnami.com All Rights Reserved # . /opt/bitnami/scripts/init/functions SWAPFILE=/mnt/.bitnami.swap SWAPSIZE=650000 configure_swap () { if ! (swapon -s | grep -q $SWAPFILE) && test $SWAPSIZE -lt `df -k |grep -m1 -e '/$'|awk '{print $4}'`; then rm -f $SWAPFILE dd if=/dev/zero of=$SWAPFILE bs=1K count=$SWAPSIZE chmod 0600 $SWAPFILE mkswap $SWAPFILE swapon $SWAPFILE fi } instance_type=`get_generic_instance_type` if [ "x$instance_type" = "xmicro" ] || [ "x$1" = "x--force" ]; then configure_swap else rm -f $SWAPFILE fi