diff --git a/deploy_rcm.sh b/deploy_rcm.sh
index b0470d8afbb8780d72b66032b97d21ccadcda373..b6fdeeb2734c6bb18a2a49e3f301d692c7e1b805 100755
--- a/deploy_rcm.sh
+++ b/deploy_rcm.sh
@@ -2,8 +2,15 @@
 
 echo "Deploy module in RCM environment"
 
+
+# Get the current version
+version=$(git describe --tags)
+
 # Copy Python module
 ipath=/home/operateur/.local/lib/python3.6/site-packages/ArchiveExtractor
 mkdir -p $ipath
 cp ArchiveExtractor/*.py $ipath/ -rvf
 
+# cwAWKSed the __init__.py file to replace the version variable
+awk -v version="$version" '{ gsub("AUTOVERSIONREPLACE",version) ; print}' ArchiveExtractor/__init__.py > $ipath/__init__.py
+