Quote:
but it seems to me if a user has edgy then they have the edgy sources.list and if they have dapper they have the dapper sources.list so why is it so important to know which they have if they already have their own sources.list... then again i haven't looked at your script so maybe you're trying to write the sources list for them
well some of the applications that would be installed need repositories that the default ubuntu install doesnt have.
Quote:
Whether Ubuntu still has /etc/issue, you'll have to check for it 'cause I don't know.........
yes it does appear ubuntu (dapper at least) has a /etc/issue
Ubuntu 6.06.1 LTS \n \l is my results from cat /etc/issue
it does seem that looking at the /etc/apt/sources.list on the target machine would tell if its dapper or edgy, but that still leaves me with trying to figure out "how" to make the script figure it all out and copy the right sources.list for the version.
im still not familiar with grep or sed and still learning how to make bash scripts do what i need so excuse me if i sound like a total idiot with bash scripts, lol.
i tried this little snippet inside the script and it failed to work, to me it looked like it should work but it doesnt surprise me that it doesnt, lol.
Quote:
read -p "Are You Using Dapper (yes or no)? " ANSWER2
if [[ $ANSWER2 = yes ]]
then
cp config/sources.list.dapper /etc/apt/sources.list;
else
read -p "Are You Using Edgy (yes or no)? " ANSWER3;
if [[ $ANSWER3 = yes ]];
then;
cp config/sources.list.edgy /etc/apt/sources.list;;
fi;
fi
i also tried
Quote:
read -p "Are You Using Dapper (dapper or edgy)? " ANSWER2
if [[ $ANSWER2 = dapper ]]
then
cp config/sources.list.dapper /etc/apt/sources.list;
if [[ $ANSWER2 = edgy ]]
then
cp config/sources.list.edgy /etc/apt/sources.list;
fi
fi
and that didnt work.
so another option is to have the script check the version of ubuntu and copy the sources without user interaction. i do know the dapper sources.list has dapper inside it a lot and the edgy sources.list has edgy in it a lot.
thank you