瀏覽代碼

Add prep cleanup

Nathaniel van Diepen 9 年之前
父節點
當前提交
4e0baff575
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      install.sh

+ 4 - 1
install.sh

@@ -69,10 +69,13 @@ if [ "$(id -u)" != "0" ];then
 	exit;
 fi;
 # Actually run the install
+section "Prep";
+TMP="$TMP/temp/";
+mkdir -p $TMP;
+rm -rf $TMP/*;
 
 section "Registering";
 log "Getting IDs";
-mkdir -p /tmp/omni-setup;
 sublog "Hostname";
 download "$REGISTER_URL/hostname" $TMP/hostname;
 if [[ "$(cat $TMP/hostname)" == "" ]];then