FsPages laisse la place à Gitlab Pages ! Voici la documentation pour vous en servir : https://docs.gitlab.com/ce/user/project/pages/index.html

Public
Snippet $356 authored by Adrien Pavie

FTP upload script for websites

put_online.sh
#!/bin/bash

#
# FTP upload script for several websites
# Pushes dist/ folder of a given project into a sub-folder of your FTP
# Author: Adrien Pavie (PanierAvide)
#

HOST=ftp.host.net
FOLDER=projets # Sub-folder in FTP to store your websites
USER=ftpuser
PASS=ftppass

# Check parameters
if [ "$1" == "" ]
then
	echo "Usage: put_online <PROJECT>"
	exit
fi

PROJECT=$1
project=`echo "$PROJECT" | tr '[:upper:]' '[:lower:]'`

# Compile project
if make -C $PROJECT/ clean all
then
	# Create project folder in FTP
	ncftp ftp://$USER:$PASS@$HOST/$FOLDER<<EOF
mkdir $project
EOF
	
	if [ $? -eq 0 ]; then
		# Upload dist content to FTP
		if ncftpput -u $USER -p $PASS -R $HOST /$FOLDER/$project $PROJECT/dist/*
		then
			# Upload dist.zip file to FTP
			if ncftpput -u $USER -p $PASS -R $HOST /$FOLDER/$project $PROJECT/dist.zip
			then
				echo "$PROJECT upload successfully done"
			else
				echo "$PROJECT upload of dist.zip failed"
			fi
		else
			echo "$PROJECT upload failed"
		fi
	else
		echo "$PROJECT FTP folder creation failed"
	fi
else
	echo "$PROJECT compilation failed"
fi