Sorry but you HAVE to go with rescue disk.
parted /dev/sdb
(parted) mklabel gpt
(parted) mkpart primary 0GB 100%
(parted) print
#!/bin/bash | |
SCRIPTNAME="${0##*/}" | |
# if the archive file does not exist, | |
# call this function with a message | |
err() { | |
printf >&2 "$SCRIPTNAME: $*\n" | |
exit 1 | |
} |
#!/bin/bash | |
# Script must be run as root, so check EUID in user's env | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit 1 | |
fi | |
echo "Stopping firewall and allowing everyone..." | |
ipt="/sbin/iptables" |
#!/bin/bash | |
# Script must be run as root, so check EUID in user's env | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit 1 | |
fi | |
iptables_repo="https://gist.github.com/2fdddd8fc0a62b7fb58b8cc9701f952b.git" |
#!/bin/bash | |
# Take one arg, and int, return 1 if variable is an INT or 0 if not | |
function ft_is_int() | |
{ | |
# Check if value is numeric | |
if [ "$1" -eq "$1" ] 2>/dev/null | |
then | |
return 0 | |
else |
#!/bin/bash | |
#TODO: external configuration file with all wanted config | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="80.67.169.12 80.67.169.40" | |
# ssh port for vm | |
ssh_port=22 |
#!/bin/bash | |
#TODO: external configuration file with all wanted config | |
### | |
# | |
# IF you want to EDIT this file but also want futur update | |
# A suggest you to create another git branch | |
# Do the following: | |
# git checkout -b peronal |
#!/bin/bash | |
# TODO: Handle hostname + IPv4 instead of only IPv4 | |
library_path=".." | |
# Check if library exist in current path | |
if [ -f "${library_path}/shell_library/type_functions.sh" ] | |
then | |
# Include library | |
. ${library_path}/shell_library/type_functions.sh |
#!/bin/bash | |
# REPO_NAME=<repo>.git | |
# ORIGIN_URL=git@<host>:<project>/$REPO_NAME | |
# REPO1_URL=git@<host>:<project>/$REPO_NAME | |
rm -rf $REPO_NAME | |
git clone --bare $ORIGIN_URL | |
if [ "$?" != "0" ]; then | |
echo "ERROR: failed clone of $ORIGIN_URL" |